Commit 0ea66861 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

d3d8: Fix comparison in IDirect3DDevice8Impl_DeleteVertexShader.

parent dbd582cf
......@@ -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)];
......
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