changeset 2565 | 54296af65fe9 |
parent 2452 | a6edc408a376 |
child 2567 | 02ff5f9510b5 |
--- a/hedgewars/uStore.pas Mon Oct 19 13:01:38 2009 +0000 +++ b/hedgewars/uStore.pas Tue Oct 20 11:49:10 2009 +0000 @@ -988,6 +988,10 @@ procedure SetupOpenGL; begin glGetIntegerv(GL_MAX_TEXTURE_SIZE, @MaxTextureSize); + +//workaround for wan the previous call fails +if MaxTextureSize = 0 then MaxTextureSize:= 1024; + {$IFDEF DEBUGFILE} AddFileLog('GL_MAX_TEXTURE_SIZE: ' + inttostr(MaxTextureSize)); {$ENDIF}