http://bugs.winehq.org/show_bug.cgi?id=10697
--- Comment #42 from Roderick Colenbrander thunderbird2k@gmx.net 2008-01-19 15:53:01 --- Err, RTL_ should have been in front of READTEX / TEXTEX, so it should have been:
if(This->Flags & SFLAG_NONPOW2 && GL_SUPPORT(ARB_TEXTURE_RECTANGLE) && !((This->resource.format == WINED3DFMT_P8) && GL_SUPPORT(EXT_PALETTED_TEXTURE) && (wined3d_settings.rendertargetlock_mode == READTEX || wined3d_settings.rendertargetlock_mode == TEXTEX)))
Hmm, perhaps I should just be checking if the format is GL_COLOR_INDEX ...