Commit 457037f4 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Fix the value of HIGHEST_TRANSFORMSTATE.

The highest transform state should be 511.
parent 73e04249
...@@ -2726,7 +2726,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_MultiplyTransform(IWineD3DDevice *iface ...@@ -2726,7 +2726,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_MultiplyTransform(IWineD3DDevice *iface
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
TRACE("(%p) : For state %s\n", This, debug_d3dtstype(State)); TRACE("(%p) : For state %s\n", This, debug_d3dtstype(State));
if (State < HIGHEST_TRANSFORMSTATE) if (State <= HIGHEST_TRANSFORMSTATE)
{ {
mat = &This->updateStateBlock->transforms[State]; mat = &This->updateStateBlock->transforms[State];
} else { } else {
......
...@@ -531,9 +531,7 @@ extern int num_lock; ...@@ -531,9 +531,7 @@ extern int num_lock;
#define MAX_STREAMS 16 /* Maximum possible streams - used for fixed size arrays #define MAX_STREAMS 16 /* Maximum possible streams - used for fixed size arrays
See MaxStreams in MSDN under GetDeviceCaps */ See MaxStreams in MSDN under GetDeviceCaps */
/* Maximum number of constants provided to the shaders */ #define HIGHEST_TRANSFORMSTATE WINED3DTS_WORLDMATRIX(255) /* Highest value in WINED3DTRANSFORMSTATETYPE */
#define HIGHEST_TRANSFORMSTATE 512
/* Highest value in WINED3DTRANSFORMSTATETYPE */
/* Checking of API calls */ /* Checking of API calls */
/* --------------------- */ /* --------------------- */
......
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