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
ef15e09d
Commit
ef15e09d
authored
Feb 21, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Validate ps 1.x sampler indices in shader_get_registers_used().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e27f31d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
shader.c
dlls/wined3d/shader.c
+6
-0
No files found.
dlls/wined3d/shader.c
View file @
ef15e09d
...
...
@@ -1271,6 +1271,12 @@ static HRESULT shader_get_registers_used(struct wined3d_shader *shader, const st
{
unsigned
int
reg_idx
=
ins
.
dst
[
i
].
reg
.
idx
[
0
].
offset
;
if
(
reg_idx
>=
ARRAY_SIZE
(
reg_maps
->
resource_info
))
{
WARN
(
"Invalid 1.x sampler index %u.
\n
"
,
reg_idx
);
continue
;
}
TRACE
(
"Setting fake 2D resource for 1.x pixelshader.
\n
"
);
reg_maps
->
resource_info
[
reg_idx
].
type
=
WINED3D_SHADER_RESOURCE_TEXTURE_2D
;
reg_maps
->
resource_info
[
reg_idx
].
data_type
=
WINED3D_DATA_FLOAT
;
...
...
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