DXGL r260 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r259‎ | r260 | r261 >
Date:23:40, 7 September 2012
Author:admin
Status:new
Tags:
Comment:
Remove glTexSubImage texture uploads due to compatibility issues.
Modified paths:
  • /ddraw/texture.cpp (modified) (history)

Diff [purge]

Index: ddraw/texture.cpp
@@ -198,13 +198,9 @@
199199 {
200200 SetActiveTexture(0);
201201 SetTexture(0,texture);
202 - if((width != texture->width) || (height != texture->height))
203 - {
204 - texture->width = width;
205 - texture->height = height;
206 - glTexImage2D(GL_TEXTURE_2D,level,texture->internalformat,width,height,0,texture->format,texture->type,data);
207 - }
208 - else glTexSubImage2D(GL_TEXTURE_2D,level,0,0,width,height,texture->format,texture->type,data);
 202+ texture->width = width;
 203+ texture->height = height;
 204+ glTexImage2D(GL_TEXTURE_2D,level,texture->internalformat,width,height,0,texture->format,texture->type,data);
209205 }
210206
211207 void DownloadTextureClassic(TEXTURE *texture, int level, void *data)