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

H. Verbeet hverbeet at gmail.com
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
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080710/1615cbb5/attachment-0001.txt 


More information about the wine-patches mailing list