H. Verbeet : d3d8:
Fix comparison in IDirect3DDevice8Impl_DeleteVertexShader.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 20 06:18:11 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 0ea6686134d3b5d20cca5acf976c33f14d69091a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0ea6686134d3b5d20cca5acf976c33f14d69091a
Author: H. Verbeet <hverbeet at gmail.com>
Date: Sun Mar 19 22:25:05 2006 +0000
d3d8: Fix comparison in IDirect3DDevice8Impl_DeleteVertexShader.
---
dlls/d3d8/device.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 834d84b..4038188 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -1140,11 +1140,11 @@ HRESULT WINAPI IDirect3DDevice8Impl_De
IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
HRESULT hrc = D3D_OK;
TRACE("(%p) Relay\n", This);
- if (VS_HIGHESTFIXEDFXF <= pShader) {
- WARN("(%p) : Caller as passed a shader below the valud of VS_HIGHESTFIXEDFXF\n", This);
+ if (pShader <= VS_HIGHESTFIXEDFXF) {
+ WARN("(%p) : Caller passed a shader below the value of VS_HIGHESTFIXEDFXF\n", This);
hrc = D3DERR_INVALIDCALL;
} else if (MAX_SHADERS <= pShader - (VS_HIGHESTFIXEDFXF + 1)) {
- FIXME("(%p) : Caller as passed a shader greater than the maximum number of shaders\n", This);
+ FIXME("(%p) : Caller passed a shader greater than the maximum number of shaders\n", This);
hrc = D3DERR_INVALIDCALL;
} else {
IDirect3DVertexShader8Impl *shader = This->vShaders[pShader - (VS_HIGHESTFIXEDFXF + 1)];
More information about the wine-cvs
mailing list