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
bfbcfd22
Commit
bfbcfd22
authored
Aug 09, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Watch out for negative results when validating the shader constant range.
parent
4d3952f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
device.c
dlls/wined3d/device.c
+2
-2
No files found.
dlls/wined3d/device.c
View file @
bfbcfd22
...
...
@@ -4833,7 +4833,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantI(
TRACE
(
"(iface %p, dstData %p, start %d, count %d)
\n
"
,
iface
,
dstData
,
start
,
count
);
if
(
dstData
==
NULL
||
cnt
<
0
)
if
(
dstData
==
NULL
||
((
signed
int
)
MAX_CONST_I
-
(
signed
int
)
start
)
<=
(
signed
int
)
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
dstData
,
&
This
->
stateBlock
->
vertexShaderConstantI
[
start
*
4
],
cnt
*
sizeof
(
int
)
*
4
);
...
...
@@ -4852,7 +4852,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantF(
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
if
(
srcData
==
NULL
||
cnt
<
0
)
if
(
srcData
==
NULL
||
((
signed
int
)
GL_LIMITS
(
vshader_constantsF
)
-
(
signed
int
)
start
)
<=
(
signed
int
)
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
&
This
->
updateStateBlock
->
vertexShaderConstantF
[
start
*
4
],
srcData
,
cnt
*
sizeof
(
float
)
*
4
);
...
...
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