Module: wine Branch: master Commit: ab8264a86dea793dc7adde97b619253a7c1a1f6b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ab8264a86dea793dc7adde97...
Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Sep 28 00:12:34 2006 +0200
wined3d: Tell gl about the surface alignment.
---
dlls/wined3d/device.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 943a616..9d3b5a0 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1865,6 +1865,12 @@ #endif 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();
TRACE("Set swapchain to %p\n", object);