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
437b3424
Commit
437b3424
authored
Oct 27, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass explicit texcoords to depth blt.
parent
57401fca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+1
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+1
-2
surface.c
dlls/wined3d/surface.c
+4
-0
No files found.
dlls/wined3d/arb_program_shader.c
View file @
437b3424
...
...
@@ -1788,8 +1788,7 @@ static GLuint create_arb_blt_vertex_program(WineD3D_GL_Info *gl_info) {
"PARAM c[1] = { { 1, 0.5 } };
\n
"
"MOV result.position, vertex.position;
\n
"
"MOV result.color, c[0].x;
\n
"
"MAD result.texcoord[0].y, -vertex.position, c[0], c[0];
\n
"
"MAD result.texcoord[0].x, vertex.position, c[0].y, c[0].y;
\n
"
"MOV result.texcoord[0], vertex.texcoord[0];
\n
"
"END
\n
"
;
GL_EXTCALL
(
glGenProgramsARB
(
1
,
&
program_id
));
...
...
dlls/wined3d/glsl_shader.c
View file @
437b3424
...
...
@@ -3388,8 +3388,7 @@ static GLhandleARB create_glsl_blt_shader(WineD3D_GL_Info *gl_info) {
"{
\n
"
" gl_Position = gl_Vertex;
\n
"
" gl_FrontColor = vec4(1.0);
\n
"
" gl_TexCoord[0].x = (gl_Vertex.x * 0.5) + 0.5;
\n
"
" gl_TexCoord[0].y = (-gl_Vertex.y * 0.5) + 0.5;
\n
"
" gl_TexCoord[0] = gl_MultiTexCoord0;
\n
"
"}
\n
"
};
...
...
dlls/wined3d/surface.c
View file @
437b3424
...
...
@@ -3979,9 +3979,13 @@ static void surface_depth_blt(IWineD3DSurfaceImpl *This, GLuint texture, GLsizei
device
->
shader_backend
->
shader_select_depth_blt
((
IWineD3DDevice
*
)
device
,
tex_2d
);
glBegin
(
GL_TRIANGLE_STRIP
);
glTexCoord2f
(
0
.
0
f
,
1
.
0
f
);
glVertex2f
(
-
1
.
0
f
,
-
1
.
0
f
);
glTexCoord2f
(
1
.
0
f
,
1
.
0
f
);
glVertex2f
(
1
.
0
f
,
-
1
.
0
f
);
glTexCoord2f
(
0
.
0
f
,
0
.
0
f
);
glVertex2f
(
-
1
.
0
f
,
1
.
0
f
);
glTexCoord2f
(
1
.
0
f
,
0
.
0
f
);
glVertex2f
(
1
.
0
f
,
1
.
0
f
);
glEnd
();
...
...
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