Am Freitag, 28. März 2008 10:25:31 schrieb Roderick Colenbrander:
Regarding the glDisable(GL_BLEND) in the CTXUSAGE_CLEAR setup: You have to mark the D3D state dirty in the context when doing that, otherwise blending might not be re-enabled properly on the next draw. I also think that disabling blending for clearing is orthogonal to the rest of the patch and should be done in a separate patch.
+#define WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING 1
Maybe use 0x1 instead of 1? That will make adding new flags beyond 8 clearer.
Otherwise it looks good!