Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
345dd49e
Commit
345dd49e
authored
Jul 09, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Jul 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix off-by-one constants bug.
parent
8068fc3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
device.c
dlls/wined3d/device.c
+12
-12
No files found.
dlls/wined3d/device.c
View file @
345dd49e
...
...
@@ -4654,7 +4654,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantB(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
,
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
(
start
+
1
)
);
int
i
,
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4681,7 +4681,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantB(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
(
start
+
1
)
);
int
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, dstData %p, start %d, count %d)
\n
"
,
iface
,
dstData
,
start
,
count
);
...
...
@@ -4700,7 +4700,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantI(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
,
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
(
start
+
1
)
);
int
i
,
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4728,7 +4728,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantI(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
(
start
+
1
)
);
int
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, dstData %p, start %d, count %d)
\n
"
,
iface
,
dstData
,
start
,
count
);
...
...
@@ -4747,7 +4747,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantF(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
,
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
(
start
+
1
)
);
int
i
,
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4775,7 +4775,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantF(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
(
start
+
1
)
);
int
cnt
=
min
(
count
,
MAX_VSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, dstData %p, start %d, count %d)
\n
"
,
iface
,
dstData
,
start
,
count
);
...
...
@@ -4836,7 +4836,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantB(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
,
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
(
start
+
1
)
);
int
i
,
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4863,7 +4863,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantB(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
(
start
+
1
)
);
int
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, dstData %p, start %d, count %d)
\n
"
,
iface
,
dstData
,
start
,
count
);
...
...
@@ -4882,7 +4882,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantI(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
,
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
(
start
+
1
)
);
int
i
,
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4910,7 +4910,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantI(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
(
start
+
1
)
);
int
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, dstData %p, start %d, count %d)
\n
"
,
iface
,
dstData
,
start
,
count
);
...
...
@@ -4929,7 +4929,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantF(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
,
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
(
start
+
1
)
);
int
i
,
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4957,7 +4957,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantF(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
(
start
+
1
)
);
int
cnt
=
min
(
count
,
MAX_PSHADER_CONSTANTS
-
start
);
TRACE
(
"(iface %p, dstData %p, start %d, count %d)
\n
"
,
iface
,
dstData
,
start
,
count
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment