wined3d: UnlockRect regression fix.

This commit is contained in:
Roderick Colenbrander 2007-11-04 17:25:44 +01:00 committed by Alexandre Julliard
parent d39abb7667
commit 9f808670ac
1 changed files with 1 additions and 0 deletions

View File

@ -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);