WineD3D: glReadPixels corrections
Stefan Dösinger
stefan at codeweavers.com
Fri Nov 3 12:12:27 CST 2006
The first to params to glReadPixels are the x and y offset to read from, not
some texture params
-------------- next part --------------
From 46c85fa3ecb55876cd09545a7a33307caf4955ba Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 3 Nov 2006 19:09:30 +0100
Subject: [PATCH] WineD3D: Correct params for glReadPixels
---
dlls/wined3d/device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 0b5f3b8..625c3dc 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6448,8 +6448,8 @@ static HRESULT WINAPI IWineD3DDeviceIm
FIXME("Reading of depthstencil not yet supported\n");
}
- glReadPixels(surfaceGlDescription->target,
- surfaceGlDescription->level,
+ glReadPixels(0,
+ 0,
surfaceWidth,
surfaceHeight,
surfaceGlDescription->glFormat,
--
1.4.1.1
More information about the wine-patches
mailing list