http://bugs.winehq.org/show_bug.cgi?id=21826
--- Comment #16 from Roderick Colenbrander thunderbird2k@gmail.com 2010-05-11 10:32:39 --- Both theme hospital and StarCraft are 8-bit, so they can show similar issues.
In case of Theme Hospital the following strikes me (StarCraft shows the same error): trace:d3d_surface:surface_allocate_surface (0x14a960) : Creating surface (target 0xde1) level 0, d3d format WINED3DFMT_P8_UINT, internal format 0x1908, width 1024, height 512, gl format 0x1908, gl type=0x1401 Mesa: User error: GL_INVALID_VALUE in glTexImage2D(level=0, width=1024, height=512, depth=1) fixme:d3d_surface:surface_allocate_surface >>>>>>>>>>>>>>>>> GL_INVALID_VALUE (0x501) from glTexImage2D @ surface.c / 602
For some reason the texture can't be allocated and the values passed to the call look sane. What's the maximum texture size of this GPU? Or perhaps it takes too much memory (this texture would require 2MB which is quite a lot, since you set 8MB of total memory).
I don't know what is wrong but I'm not sure it is Wine. Basically all we are really doing is drawing 2d data to the screen using opengl. The GL_COMBINE_EXT stuff shouldn't matter.