DXGL r476 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r475‎ | r476 | r477 >
Date:01:31, 4 August 2014
Author:admin
Status:new
Tags:
Comment:
Initialize fixed texture with previous data.
Modified paths:
  • /ddraw/TextureManager.c (modified) (history)

Diff [purge]

Index: ddraw/TextureManager.c
@@ -391,7 +391,7 @@
392392 newtexture.internalformats[7] = 0;
393393 ClearError();
394394 glTexImage2D(GL_TEXTURE_2D, 0, newtexture.internalformats[0], newtexture.width, newtexture.height,
395 - 0, newtexture.format, newtexture.type, NULL);
 395+ 0, newtexture.format, newtexture.type, data);
396396 error = glGetError();
397397 if (error != GL_NO_ERROR)
398398 {