Browse Source

git-svn-id: http://zengl.googlecode.com/svn/branches/0.3.x@1949 6573c10b-8653-0410-9706-d32479e959fb

dr.andru 12 years ago
parent
commit
69dd219b1e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/zgl_video.pas

+ 2 - 0
src/zgl_video.pas

@@ -248,7 +248,9 @@ begin
           for i := 0 to sh - 1 do
             data[ i ] := PLongWordArray( Stream.Data )[ ( sw - 1 ) + sw * i ];
           data[ sh ] := data[ sh - 1 ];
+          INC( Stream.Texture.Height );
           tex_SetData( Stream.Texture, PByteArray( data ), sw, 0, 1, sh + 1 );
+          DEC( Stream.Texture.Height );
           FreeMem( data );
         end;
       if sh <> u_GetPOT( sh ) Then