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
7363b0e9
Commit
7363b0e9
authored
Nov 29, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Explicitly pass data and gl_info to shader_deselect_depth_blt().
parent
93a824d7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
15 deletions
+17
-15
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+11
-8
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-4
shader.c
dlls/wined3d/shader.c
+1
-1
surface.c
dlls/wined3d/surface.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
7363b0e9
...
...
@@ -4644,17 +4644,18 @@ static void shader_arb_select_depth_blt(void *shader_priv, const struct wined3d_
}
/* GL locking is done by the caller */
static
void
shader_arb_deselect_depth_blt
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
struct
shader_arb_priv
*
priv
=
This
->
shader_priv
;
const
struct
wined3d_gl_info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
static
void
shader_arb_deselect_depth_blt
(
void
*
shader_priv
,
const
struct
wined3d_gl_info
*
gl_info
)
{
struct
shader_arb_priv
*
priv
=
shader_priv
;
if
(
priv
->
current_vprogram_id
)
{
GL_EXTCALL
(
glBindProgramARB
(
GL_VERTEX_PROGRAM_ARB
,
priv
->
current_vprogram_id
));
checkGLcall
(
"glBindProgramARB(GL_VERTEX_PROGRAM_ARB, vertexShader->prgId);"
);
TRACE
(
"(%p) : Bound vertex program %u and enabled GL_VERTEX_PROGRAM_ARB
\n
"
,
This
,
priv
->
current_vprogram_id
);
}
else
{
TRACE
(
"Bound vertex program %u and enabled GL_VERTEX_PROGRAM_ARB.
\n
"
,
priv
->
current_vprogram_id
);
}
else
{
glDisable
(
GL_VERTEX_PROGRAM_ARB
);
checkGLcall
(
"glDisable(GL_VERTEX_PROGRAM_ARB)"
);
}
...
...
@@ -4663,8 +4664,10 @@ static void shader_arb_deselect_depth_blt(IWineD3DDevice *iface) {
GL_EXTCALL
(
glBindProgramARB
(
GL_FRAGMENT_PROGRAM_ARB
,
priv
->
current_fprogram_id
));
checkGLcall
(
"glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, pixelShader->prgId);"
);
TRACE
(
"(%p) : Bound fragment program %u and enabled GL_FRAGMENT_PROGRAM_ARB
\n
"
,
This
,
priv
->
current_fprogram_id
);
}
else
if
(
!
priv
->
use_arbfp_fixed_func
)
{
TRACE
(
"Bound fragment program %u and enabled GL_FRAGMENT_PROGRAM_ARB.
\n
"
,
priv
->
current_fprogram_id
);
}
else
if
(
!
priv
->
use_arbfp_fixed_func
)
{
glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
checkGLcall
(
"glDisable(GL_FRAGMENT_PROGRAM_ARB)"
);
}
...
...
dlls/wined3d/glsl_shader.c
View file @
7363b0e9
...
...
@@ -4651,10 +4651,9 @@ static void shader_glsl_select_depth_blt(void *shader_priv, const struct wined3d
}
/* GL locking is done by the caller */
static
void
shader_glsl_deselect_depth_blt
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
const
struct
wined3d_gl_info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
struct
shader_glsl_priv
*
priv
=
This
->
shader_priv
;
static
void
shader_glsl_deselect_depth_blt
(
void
*
shader_priv
,
const
struct
wined3d_gl_info
*
gl_info
)
{
struct
shader_glsl_priv
*
priv
=
shader_priv
;
GLhandleARB
program_id
;
program_id
=
priv
->
glsl_program
?
priv
->
glsl_program
->
programId
:
0
;
...
...
dlls/wined3d/shader.c
View file @
7363b0e9
...
...
@@ -1512,7 +1512,7 @@ static void shader_none_handle_instruction(const struct wined3d_shader_instructi
static
void
shader_none_select
(
const
struct
wined3d_context
*
context
,
BOOL
usePS
,
BOOL
useVS
)
{}
static
void
shader_none_select_depth_blt
(
void
*
shader_priv
,
const
struct
wined3d_gl_info
*
gl_info
,
enum
tex_types
tex_type
,
const
SIZE
*
ds_mask_size
)
{}
static
void
shader_none_deselect_depth_blt
(
IWineD3DDevice
*
iface
)
{}
static
void
shader_none_deselect_depth_blt
(
void
*
shader_priv
,
const
struct
wined3d_gl_info
*
gl_info
)
{}
static
void
shader_none_update_float_vertex_constants
(
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
count
)
{}
static
void
shader_none_update_float_pixel_constants
(
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
count
)
{}
static
void
shader_none_load_constants
(
const
struct
wined3d_context
*
context
,
char
usePS
,
char
useVS
)
{}
...
...
dlls/wined3d/surface.c
View file @
7363b0e9
...
...
@@ -4121,7 +4121,7 @@ static void surface_depth_blt(IWineD3DSurfaceImpl *This, const struct wined3d_gl
glPopAttrib
();
device
->
shader_backend
->
shader_deselect_depth_blt
(
(
IWineD3DDevice
*
)
device
);
device
->
shader_backend
->
shader_deselect_depth_blt
(
device
->
shader_priv
,
gl_info
);
}
void
surface_modify_ds_location
(
IWineD3DSurfaceImpl
*
surface
,
...
...
dlls/wined3d/wined3d_private.h
View file @
7363b0e9
...
...
@@ -746,7 +746,7 @@ typedef struct {
void
(
*
shader_select
)(
const
struct
wined3d_context
*
context
,
BOOL
usePS
,
BOOL
useVS
);
void
(
*
shader_select_depth_blt
)(
void
*
shader_priv
,
const
struct
wined3d_gl_info
*
gl_info
,
enum
tex_types
tex_type
,
const
SIZE
*
ds_mask_size
);
void
(
*
shader_deselect_depth_blt
)(
IWineD3DDevice
*
iface
);
void
(
*
shader_deselect_depth_blt
)(
void
*
shader_priv
,
const
struct
wined3d_gl_info
*
gl_info
);
void
(
*
shader_update_float_vertex_constants
)(
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
count
);
void
(
*
shader_update_float_pixel_constants
)(
IWineD3DDevice
*
iface
,
UINT
start
,
UINT
count
);
void
(
*
shader_load_constants
)(
const
struct
wined3d_context
*
context
,
char
usePS
,
char
useVS
);
...
...
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