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
0b7a96e9
Commit
0b7a96e9
authored
Aug 24, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Compile pixel shaders in drawprim.
parent
4e92e29c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
drawprim.c
dlls/wined3d/drawprim.c
+7
-0
pixelshader.c
dlls/wined3d/pixelshader.c
+0
-3
No files found.
dlls/wined3d/drawprim.c
View file @
0b7a96e9
...
...
@@ -1796,6 +1796,13 @@ inline static void drawPrimitiveDrawStrided(
useDrawStridedSlow
=
TRUE
;
}
if
(
usePixelShaderFunction
)
{
/* We compile the shader here because it depends on the texture stage state
* setup of the bound textures. If the shader is already compiled and the texture stage
* state setup matches the program this function will do nothing
*/
IWineD3DPixelShader_CompileShader
(
This
->
stateBlock
->
pixelShader
);
}
/* If GLSL is used for either pixel or vertex shaders, make a GLSL program
* Otherwise set NULL, to restore fixed function */
if
((
wined3d_settings
.
vs_selected_mode
==
SHADER_GLSL
&&
useVertexShaderFunction
)
||
...
...
dlls/wined3d/pixelshader.c
View file @
0b7a96e9
...
...
@@ -949,9 +949,6 @@ static HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *i
This
->
baseShader
.
function
=
NULL
;
}
/* Compile the shader. */
IWineD3DPixelShader_CompileShader
(
iface
);
return
WINED3D_OK
;
}
...
...
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