Alexander Dorofeyev : wined3d: Add ENTER_GL/ LEAVE_GL in surface_bind_and_dirtify.
Alexandre Julliard
julliard at winehq.org
Thu Apr 3 05:43:52 CDT 2008
Module: wine
Branch: master
Commit: d5b400307bd02ff70adaf51caa4d8def7e89db0c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d5b400307bd02ff70adaf51caa4d8def7e89db0c
Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date: Thu Apr 3 00:11:50 2008 +0300
wined3d: Add ENTER_GL/LEAVE_GL in surface_bind_and_dirtify.
---
dlls/wined3d/surface.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 573ac36..e233ce2 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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
*/
if (GL_SUPPORT(ARB_MULTITEXTURE)) {
+ ENTER_GL();
glGetIntegerv(GL_ACTIVE_TEXTURE, &active_texture);
+ LEAVE_GL();
active_texture -= GL_TEXTURE0_ARB;
} else {
active_texture = 0;
More information about the wine-cvs
mailing list