wined3d: Fix recursive ENTER_GL in UpdateSurface.
This commit is contained in:
parent
e848aed2b8
commit
47372928b8
|
@ -5880,11 +5880,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
|
|||
|
||||
ActivateContext(This, This->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
|
||||
|
||||
ENTER_GL();
|
||||
|
||||
if (GL_SUPPORT(ARB_MULTITEXTURE)) {
|
||||
ENTER_GL();
|
||||
GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB));
|
||||
checkGLcall("glActiveTextureARB");
|
||||
LEAVE_GL();
|
||||
}
|
||||
|
||||
/* Make sure the surface is loaded and up to date */
|
||||
|
@ -5924,6 +5924,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
|
|||
FIXME("Surfaces has no allocated memory, but should be an in memory only surface\n");
|
||||
}
|
||||
|
||||
ENTER_GL();
|
||||
|
||||
/* TODO: Cube and volume support */
|
||||
if(rowoffset != 0){
|
||||
/* not a whole row so we have to do it a line at a time */
|
||||
|
|
Loading…
Reference in New Issue