Commit ab8264a8 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Tell gl about the surface alignment.

parent 906e6377
...@@ -1865,6 +1865,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment