Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fa97fbdc
Commit
fa97fbdc
authored
Feb 08, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Feb 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make shader_cleanup more useful.
parent
67b1f4a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+5
-3
baseshader.c
dlls/wined3d/baseshader.c
+1
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+4
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
fa97fbdc
...
...
@@ -986,9 +986,11 @@ static void shader_arb_select_depth_blt(IWineD3DDevice *iface) {
glEnable
(
GL_FRAGMENT_PROGRAM_ARB
);
}
static
void
shader_arb_cleanup
(
BOOL
usePS
,
BOOL
useVS
)
{
if
(
useVS
)
glDisable
(
GL_VERTEX_PROGRAM_ARB
);
if
(
usePS
)
glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
static
void
shader_arb_cleanup
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
WineD3D_GL_Info
*
gl_info
=
&
((
IWineD3DImpl
*
)(
This
->
wineD3D
))
->
gl_info
;
if
(
GL_SUPPORT
(
ARB_VERTEX_PROGRAM
))
glDisable
(
GL_VERTEX_PROGRAM_ARB
);
if
(
GL_SUPPORT
(
ARB_FRAGMENT_PROGRAM
))
glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
}
const
shader_backend_t
arb_program_shader_backend
=
{
...
...
dlls/wined3d/baseshader.c
View file @
fa97fbdc
...
...
@@ -980,7 +980,7 @@ void shader_delete_constant_list(
static
void
shader_none_select
(
IWineD3DDevice
*
iface
,
BOOL
usePS
,
BOOL
useVS
)
{}
static
void
shader_none_select_depth_blt
(
IWineD3DDevice
*
iface
)
{}
static
void
shader_none_load_constants
(
IWineD3DDevice
*
iface
,
char
usePS
,
char
useVS
)
{}
static
void
shader_none_cleanup
(
BOOL
usePS
,
BOOL
useVS
)
{}
static
void
shader_none_cleanup
(
IWineD3DDevice
*
iface
)
{}
const
shader_backend_t
none_shader_backend
=
{
&
shader_none_select
,
...
...
dlls/wined3d/glsl_shader.c
View file @
fa97fbdc
...
...
@@ -2161,8 +2161,10 @@ static void shader_glsl_select_depth_blt(IWineD3DDevice *iface) {
GL_EXTCALL
(
glUniform1iARB
(
loc
,
0
));
}
static
void
shader_glsl_cleanup
(
BOOL
usePS
,
BOOL
useVS
)
{
/* Nothing to do */
static
void
shader_glsl_cleanup
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
WineD3D_GL_Info
*
gl_info
=
&
((
IWineD3DImpl
*
)(
This
->
wineD3D
))
->
gl_info
;
GL_EXTCALL
(
glUseProgramObjectARB
(
0
));
}
const
shader_backend_t
glsl_shader_backend
=
{
...
...
dlls/wined3d/wined3d_private.h
View file @
fa97fbdc
...
...
@@ -177,7 +177,7 @@ typedef struct {
void
(
*
shader_select
)(
IWineD3DDevice
*
iface
,
BOOL
usePS
,
BOOL
useVS
);
void
(
*
shader_select_depth_blt
)(
IWineD3DDevice
*
iface
);
void
(
*
shader_load_constants
)(
IWineD3DDevice
*
iface
,
char
usePS
,
char
useVS
);
void
(
*
shader_cleanup
)(
BOOL
usePS
,
BOOL
useVS
);
void
(
*
shader_cleanup
)(
IWineD3DDevice
*
iface
);
}
shader_backend_t
;
extern
const
shader_backend_t
glsl_shader_backend
;
...
...
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