wined3d: Deactivate GL_FRAGMENT_SHADER_ATI before deactivating a context.
commitddf52dda15e83eae639ef2ce0ec4071b321ce34f
authorStefan Dösinger <stefan@codeweavers.com>
Sun, 30 Mar 2008 12:52:18 +0000 (30 14:52 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 3 Apr 2008 10:02:24 +0000 (3 12:02 +0200)
tree1c95c55103f1e3b1413c3b0072a912ef847d2375
parentde5a8db58b51be2f65baf3b9b67d79bc9c49a17e
wined3d: Deactivate GL_FRAGMENT_SHADER_ATI before deactivating a context.

Mesa has a bug that causes a crash due to a NULL pointer dereference
with the R200 driver when making a context current that has
GL_FRAGMENT_SHADER_ATI enabled. This patch works around this bug by
making sure that GL_FRAGMENT_SHADER_ATI is disabled before deactivating
a context, and reactivates it afterwards. The context manager keeps
GL_ATI_FRAGMENT_SHADER generally enabled, except if the context is in 2D
blit mode.
dlls/wined3d/context.c