wined3d: Don't call shader_select() in depth_blt()

H. Verbeet hverbeet at
Thu Jul 10 10:57:35 CDT 2008

Calling shader_select() from inside depth_blt() isn't necessarily
safe. shader_select() assumes CompileShader() has been called for the
current shaders, but that depends on STATE_VSHADER / STATE_PIXELSHADER
being applied. That isn't always true when depth_blt() gets called,
with the result that sometimes GLSL programs could be created with no
shader objects attached.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 01-wined3d_shader_select.diff.txt

More information about the wine-patches mailing list