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
73823ef5
Commit
73823ef5
authored
Dec 16, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the shader_cleanup() method from the shader backend.
parent
1e1cf780
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
19 deletions
+1
-19
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+0
-8
baseshader.c
dlls/wined3d/baseshader.c
+0
-2
context.c
dlls/wined3d/context.c
+1
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+0
-7
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/arb_program_shader.c
View file @
73823ef5
...
...
@@ -1777,13 +1777,6 @@ static void shader_arb_deselect_depth_blt(IWineD3DDevice *iface) {
}
}
static
void
shader_arb_cleanup
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
const
WineD3D_GL_Info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
if
(
GL_SUPPORT
(
ARB_VERTEX_PROGRAM
))
glDisable
(
GL_VERTEX_PROGRAM_ARB
);
if
(
GL_SUPPORT
(
ARB_FRAGMENT_PROGRAM
))
glDisable
(
GL_FRAGMENT_PROGRAM_ARB
);
}
static
void
shader_arb_destroy
(
IWineD3DBaseShader
*
iface
)
{
IWineD3DBaseShaderImpl
*
baseShader
=
(
IWineD3DBaseShaderImpl
*
)
iface
;
const
WineD3D_GL_Info
*
gl_info
=
&
((
IWineD3DDeviceImpl
*
)
baseShader
->
baseShader
.
device
)
->
adapter
->
gl_info
;
...
...
@@ -2183,7 +2176,6 @@ const shader_backend_t arb_program_shader_backend = {
shader_arb_select_depth_blt
,
shader_arb_deselect_depth_blt
,
shader_arb_load_constants
,
shader_arb_cleanup
,
shader_arb_color_correction
,
shader_arb_destroy
,
shader_arb_alloc
,
...
...
dlls/wined3d/baseshader.c
View file @
73823ef5
...
...
@@ -1123,7 +1123,6 @@ static void shader_none_select(IWineD3DDevice *iface, BOOL usePS, BOOL useVS) {}
static
void
shader_none_select_depth_blt
(
IWineD3DDevice
*
iface
,
enum
tex_types
tex_type
)
{}
static
void
shader_none_deselect_depth_blt
(
IWineD3DDevice
*
iface
)
{}
static
void
shader_none_load_constants
(
IWineD3DDevice
*
iface
,
char
usePS
,
char
useVS
)
{}
static
void
shader_none_cleanup
(
IWineD3DDevice
*
iface
)
{}
static
void
shader_none_color_correction
(
const
struct
SHADER_OPCODE_ARG
*
arg
,
struct
color_fixup_desc
fixup
)
{}
static
void
shader_none_destroy
(
IWineD3DBaseShader
*
iface
)
{}
static
HRESULT
shader_none_alloc
(
IWineD3DDevice
*
iface
)
{
return
WINED3D_OK
;}
...
...
@@ -1171,7 +1170,6 @@ const shader_backend_t none_shader_backend = {
shader_none_select_depth_blt
,
shader_none_deselect_depth_blt
,
shader_none_load_constants
,
shader_none_cleanup
,
shader_none_color_correction
,
shader_none_destroy
,
shader_none_alloc
,
...
...
dlls/wined3d/context.c
View file @
73823ef5
...
...
@@ -1047,7 +1047,7 @@ static inline void SetupForBlit(IWineD3DDeviceImpl *This, WineD3DContext *contex
/* TODO: Use a display list */
/* Disable shaders */
This
->
shader_backend
->
shader_
cleanup
((
IWineD3DDevice
*
)
This
);
This
->
shader_backend
->
shader_
select
((
IWineD3DDevice
*
)
This
,
FALSE
,
FALSE
);
Context_MarkStateDirty
(
context
,
STATE_VSHADER
,
StateTable
);
Context_MarkStateDirty
(
context
,
STATE_PIXELSHADER
,
StateTable
);
...
...
dlls/wined3d/glsl_shader.c
View file @
73823ef5
...
...
@@ -3446,12 +3446,6 @@ static void shader_glsl_deselect_depth_blt(IWineD3DDevice *iface) {
checkGLcall
(
"glUseProgramObjectARB"
);
}
static
void
shader_glsl_cleanup
(
IWineD3DDevice
*
iface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
const
WineD3D_GL_Info
*
gl_info
=
&
This
->
adapter
->
gl_info
;
GL_EXTCALL
(
glUseProgramObjectARB
(
0
));
}
static
void
shader_glsl_destroy
(
IWineD3DBaseShader
*
iface
)
{
const
struct
list
*
linked_programs
;
IWineD3DBaseShaderImpl
*
This
=
(
IWineD3DBaseShaderImpl
*
)
iface
;
...
...
@@ -3873,7 +3867,6 @@ const shader_backend_t glsl_shader_backend = {
shader_glsl_select_depth_blt
,
shader_glsl_deselect_depth_blt
,
shader_glsl_load_constants
,
shader_glsl_cleanup
,
shader_glsl_color_correction
,
shader_glsl_destroy
,
shader_glsl_alloc
,
...
...
dlls/wined3d/wined3d_private.h
View file @
73823ef5
...
...
@@ -433,7 +433,6 @@ typedef struct {
void
(
*
shader_select_depth_blt
)(
IWineD3DDevice
*
iface
,
enum
tex_types
tex_type
);
void
(
*
shader_deselect_depth_blt
)(
IWineD3DDevice
*
iface
);
void
(
*
shader_load_constants
)(
IWineD3DDevice
*
iface
,
char
usePS
,
char
useVS
);
void
(
*
shader_cleanup
)(
IWineD3DDevice
*
iface
);
void
(
*
shader_color_correction
)(
const
struct
SHADER_OPCODE_ARG
*
arg
,
struct
color_fixup_desc
fixup
);
void
(
*
shader_destroy
)(
IWineD3DBaseShader
*
iface
);
HRESULT
(
*
shader_alloc_private
)(
IWineD3DDevice
*
iface
);
...
...
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