wined3d: Tell gl about the surface alignment.

This commit is contained in:
Stefan Dösinger 2006-09-28 00:12:34 +02:00 committed by Alexandre Julliard
parent 906e637748
commit ab8264a86d
1 changed files with 6 additions and 0 deletions

View File

@ -1865,6 +1865,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
glXMakeCurrent(object->display, oldDrawable, oldContext); glXMakeCurrent(object->display, oldDrawable, oldContext);
} }
/* Set the surface alignment. This never changes, so we are safe to set it once per context*/
glPixelStorei(GL_PACK_ALIGNMENT, 4);
checkGLcall("glPixelStorei(GL_PACK_ALIGNMENT, 4);");
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
checkGLcall("glPixelStorei(GL_UNPACK_ALIGNMENT, 4);");
LEAVE_GL(); LEAVE_GL();
TRACE("Set swapchain to %p\n", object); TRACE("Set swapchain to %p\n", object);