[PATCH] Make sure there is a context before making GL calls. During the LoadLocation changes this call got lost.
Roderick Colenbrander
thunderbird2k at gmx.net
Sun Nov 4 10:25:44 CST 2007
---
dlls/wined3d/surface.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index b74a267..3d22e42 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1211,6 +1211,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
switch(wined3d_settings.rendertargetlock_mode) {
case RTL_READTEX:
case RTL_TEXTEX:
+ ActivateContext(myDevice, iface, CTXUSAGE_BLIT);
ENTER_GL();
if (This->glDescription.textureName == 0) {
glGenTextures(1, &This->glDescription.textureName);
--
1.5.1.3
--========GMX269941194190042306867--
More information about the wine-patches
mailing list