wined3d: Add ENTER_GL/LEAVE_GL in surface_bind_and_dirtify.

This commit is contained in:
Alexander Dorofeyev 2008-04-03 00:11:50 +03:00 committed by Alexandre Julliard
parent 2caa797e76
commit d5b400307b
1 changed files with 2 additions and 0 deletions

View File

@ -47,7 +47,9 @@ static void surface_bind_and_dirtify(IWineD3DSurfaceImpl *This) {
* TODO: Track the current active texture per GL context instead of using glGet * TODO: Track the current active texture per GL context instead of using glGet
*/ */
if (GL_SUPPORT(ARB_MULTITEXTURE)) { if (GL_SUPPORT(ARB_MULTITEXTURE)) {
ENTER_GL();
glGetIntegerv(GL_ACTIVE_TEXTURE, &active_texture); glGetIntegerv(GL_ACTIVE_TEXTURE, &active_texture);
LEAVE_GL();
active_texture -= GL_TEXTURE0_ARB; active_texture -= GL_TEXTURE0_ARB;
} else { } else {
active_texture = 0; active_texture = 0;