http://bugs.winehq.org/show_bug.cgi?id=9775
--- Comment #36 from Tobias Jakobi liquid.acid@gmx.net 2008-07-07 08:06:37 --- Hi Matteo,
could you try patching the source (wined3d/surface.c):
In line 509, add checkGLcall("glEnable"); after the glEnable call.
The GL_INVALID_ENUM state is probably not coming from GenTextures at all.
Greets, Tobias