d3d8: Fix comparison in IDirect3DDevice8Impl_DeleteVertexShader.

This commit is contained in:
H. Verbeet 2006-03-19 22:25:05 +00:00 committed by Alexandre Julliard
parent dbd582cf84
commit 0ea6686134
1 changed files with 3 additions and 3 deletions

View File

@ -1140,11 +1140,11 @@ HRESULT WINAPI IDirect3DDevice8Impl_DeleteVertexShader(LPDIRECT3DDEVICE8 iface
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)];