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
704f9ea5
Commit
704f9ea5
authored
Dec 15, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DPixelShaderImpl_GenerateShader.
parent
2aa7a7fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
pixelshader.c
dlls/wined3d/pixelshader.c
+4
-15
No files found.
dlls/wined3d/pixelshader.c
View file @
704f9ea5
...
@@ -296,20 +296,6 @@ static void pshader_set_limits(
...
@@ -296,20 +296,6 @@ static void pshader_set_limits(
}
}
}
}
/** Generate a pixel shader string using either GL_FRAGMENT_PROGRAM_ARB
or GLSL and send it to the card */
static
inline
GLuint
IWineD3DPixelShaderImpl_GenerateShader
(
IWineD3DPixelShaderImpl
*
This
)
{
SHADER_BUFFER
buffer
;
GLuint
shader
;
shader_buffer_init
(
&
buffer
);
shader
=
((
IWineD3DDeviceImpl
*
)
This
->
baseShader
.
device
)
->
shader_backend
->
shader_generate_pshader
((
IWineD3DPixelShader
*
)
This
,
&
buffer
);
shader_buffer_free
(
&
buffer
);
return
shader
;
}
static
HRESULT
WINAPI
IWineD3DPixelShaderImpl_SetFunction
(
IWineD3DPixelShader
*
iface
,
CONST
DWORD
*
pFunction
)
{
static
HRESULT
WINAPI
IWineD3DPixelShaderImpl_SetFunction
(
IWineD3DPixelShader
*
iface
,
CONST
DWORD
*
pFunction
)
{
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
IWineD3DPixelShaderImpl
*
This
=
(
IWineD3DPixelShaderImpl
*
)
iface
;
...
@@ -436,6 +422,7 @@ static GLuint pixelshader_compile(IWineD3DPixelShaderImpl *This, const struct ps
...
@@ -436,6 +422,7 @@ static GLuint pixelshader_compile(IWineD3DPixelShaderImpl *This, const struct ps
{
{
CONST
DWORD
*
function
=
This
->
baseShader
.
function
;
CONST
DWORD
*
function
=
This
->
baseShader
.
function
;
GLuint
retval
;
GLuint
retval
;
SHADER_BUFFER
buffer
;
TRACE
(
"(%p) : function %p
\n
"
,
This
,
function
);
TRACE
(
"(%p) : function %p
\n
"
,
This
,
function
);
...
@@ -447,7 +434,9 @@ static GLuint pixelshader_compile(IWineD3DPixelShaderImpl *This, const struct ps
...
@@ -447,7 +434,9 @@ static GLuint pixelshader_compile(IWineD3DPixelShaderImpl *This, const struct ps
/* Generate the HW shader */
/* Generate the HW shader */
TRACE
(
"(%p) : Generating hardware program
\n
"
,
This
);
TRACE
(
"(%p) : Generating hardware program
\n
"
,
This
);
retval
=
IWineD3DPixelShaderImpl_GenerateShader
(
This
);
shader_buffer_init
(
&
buffer
);
retval
=
((
IWineD3DDeviceImpl
*
)
This
->
baseShader
.
device
)
->
shader_backend
->
shader_generate_pshader
((
IWineD3DPixelShader
*
)
This
,
&
buffer
);
shader_buffer_free
(
&
buffer
);
This
->
baseShader
.
is_compiled
=
TRUE
;
This
->
baseShader
.
is_compiled
=
TRUE
;
...
...
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