diff -r 0421e9f59774 -r 54296af65fe9 hedgewars/uStore.pas --- 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}