wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DDeviceImpl_Uninit3D.

This commit is contained in:
Alexander Dorofeyev 2008-04-07 00:05:55 +03:00 committed by Alexandre Julliard
parent 29b38bc886
commit 7c261553d0
1 changed files with 2 additions and 0 deletions

View File

@ -2232,7 +2232,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, D3DCB_D
/* Delete the palette conversion shader if it is around */ /* Delete the palette conversion shader if it is around */
if(This->paletteConversionShader) { if(This->paletteConversionShader) {
ENTER_GL();
GL_EXTCALL(glDeleteProgramsARB(1, &This->paletteConversionShader)); GL_EXTCALL(glDeleteProgramsARB(1, &This->paletteConversionShader));
LEAVE_GL();
This->paletteConversionShader = 0; This->paletteConversionShader = 0;
} }