From 615f75faecb76f7a22b4cb8ab67b0ea0ed77d4d1 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 3 Sep 2008 16:29:34 +0200 Subject: [PATCH] wined3d: IWineD3DSurface_PreLoad() doesn't do an implicit glBindTexture() anymore. This was exposed by moving texture id generation from Preload() to BindTexture(). --- dlls/wined3d/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index d12aebdef92..74688dd421f 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6160,6 +6160,7 @@ void attach_depth_stencil_fbo(IWineD3DDeviceImpl *This, GLenum fbo_target, IWine IWineD3DSurface_PreLoad(depth_stencil); + glBindTexture(target, depth_stencil_impl->glDescription.textureName); glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(target, GL_DEPTH_TEXTURE_MODE_ARB, GL_LUMINANCE); @@ -6202,6 +6203,7 @@ void attach_surface_fbo(IWineD3DDeviceImpl *This, GLenum fbo_target, DWORD idx, IWineD3DSurface_PreLoad(surface); + glBindTexture(target, surface_impl->glDescription.textureName); glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glBindTexture(target, old_binding); -- 2.11.4.GIT