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
b875a4a4
Commit
b875a4a4
authored
Feb 09, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Feb 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use GL_CLAMP_TO_EDGE instead of GL_CLAMP.
GL_CLAMP was removed from core profile and probably GL_CLAMP_TO_EDGE was intended to be used here anyway.
parent
f4da7231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
surface.c
dlls/wined3d/surface.c
+4
-4
No files found.
dlls/wined3d/surface.c
View file @
b875a4a4
...
...
@@ -315,8 +315,8 @@ void draw_textured_quad(const struct wined3d_surface *src_surface, struct wined3
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
info
.
bind_target
,
GL_TEXTURE_MIN_FILTER
,
wined3d_gl_min_mip_filter
(
filter
,
WINED3D_TEXF_NONE
));
checkGLcall
(
"glTexParameteri"
);
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
info
.
bind_target
,
GL_TEXTURE_WRAP_S
,
GL_CLAMP
);
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
info
.
bind_target
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP
);
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
info
.
bind_target
,
GL_TEXTURE_WRAP_S
,
GL_CLAMP
_TO_EDGE
);
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
info
.
bind_target
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP
_TO_EDGE
);
if
(
context
->
gl_info
->
supported
[
EXT_TEXTURE_SRGB_DECODE
])
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
info
.
bind_target
,
GL_TEXTURE_SRGB_DECODE_EXT
,
GL_SKIP_DECODE_EXT
);
gl_info
->
gl_ops
.
gl
.
p_glTexEnvi
(
GL_TEXTURE_ENV
,
GL_TEXTURE_ENV_MODE
,
GL_REPLACE
);
...
...
@@ -3306,8 +3306,8 @@ static void fb_copy_to_texture_hwstretch(struct wined3d_surface *dst_surface, st
}
/* draw the source texture stretched and upside down. The correct surface is bound already */
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
texture_target
,
GL_TEXTURE_WRAP_S
,
GL_CLAMP
);
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
texture_target
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP
);
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
texture_target
,
GL_TEXTURE_WRAP_S
,
GL_CLAMP
_TO_EDGE
);
gl_info
->
gl_ops
.
gl
.
p_glTexParameteri
(
texture_target
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP
_TO_EDGE
);
context_set_draw_buffer
(
context
,
drawBuffer
);
gl_info
->
gl_ops
.
gl
.
p_glReadBuffer
(
drawBuffer
);
...
...
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