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
7d8ad2e8
Commit
7d8ad2e8
authored
Jul 03, 2019
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a wined3d_context_gl structure to find_glsl_compute_shader().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dbb0139e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-3
No files found.
dlls/wined3d/glsl_shader.c
View file @
7d8ad2e8
...
...
@@ -10043,10 +10043,9 @@ static HRESULT shader_glsl_compile_compute_shader(struct shader_glsl_priv *priv,
return
WINED3D_OK
;
}
static
GLuint
find_glsl_compute_shader
(
const
struct
wined3d_context
*
context
,
static
GLuint
find_glsl_compute_shader
(
const
struct
wined3d_context
_gl
*
context_gl
,
struct
shader_glsl_priv
*
priv
,
struct
wined3d_shader
*
shader
)
{
const
struct
wined3d_context_gl
*
context_gl
=
wined3d_context_gl_const
(
context
);
struct
glsl_shader_private
*
shader_data
;
if
(
!
shader
->
backend_data
)
...
...
@@ -10066,6 +10065,7 @@ static GLuint find_glsl_compute_shader(const struct wined3d_context *context,
static
void
set_glsl_compute_shader_program
(
const
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
struct
shader_glsl_priv
*
priv
,
struct
glsl_context_data
*
ctx_data
)
{
const
struct
wined3d_context_gl
*
context_gl
=
wined3d_context_gl_const
(
context
);
struct
glsl_shader_prog_link
*
entry
;
struct
wined3d_shader
*
shader
;
struct
glsl_program_key
key
;
...
...
@@ -10081,7 +10081,7 @@ static void set_glsl_compute_shader_program(const struct wined3d_context *contex
return
;
}
cs_id
=
find_glsl_compute_shader
(
context
,
priv
,
shader
);
cs_id
=
find_glsl_compute_shader
(
context
_gl
,
priv
,
shader
);
memset
(
&
key
,
0
,
sizeof
(
key
));
key
.
cs_id
=
cs_id
;
if
(
!
(
entry
=
get_glsl_program_entry
(
priv
,
&
key
)))
...
...
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