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
6c6565de
Commit
6c6565de
authored
Jan 25, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of a superfluous texture copy in check_fbo_compat().
parent
dc214603
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
utils.c
dlls/wined3d/utils.c
+1
-7
No files found.
dlls/wined3d/utils.c
View file @
6c6565de
...
...
@@ -1068,10 +1068,10 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined
&&
format
->
glFormat
!=
GL_LUMINANCE
&&
format
->
glFormat
!=
GL_LUMINANCE_ALPHA
&&
(
format
->
red_size
||
format
->
alpha_size
))
{
GLuint
rb
,
tex2
;
DWORD
readback
[
16
*
16
],
color
,
r_range
,
a_range
;
BYTE
r
,
a
;
BOOL
match
=
TRUE
;
GLuint
rb
;
if
(
gl_info
->
supported
[
ARB_FRAMEBUFFER_OBJECT
]
||
gl_info
->
supported
[
EXT_PACKED_DEPTH_STENCIL
])
...
...
@@ -1125,10 +1125,7 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined
gl_info
->
gl_ops
.
gl
.
p_glEnd
();
gl_info
->
gl_ops
.
gl
.
p_glDisable
(
GL_BLEND
);
gl_info
->
gl_ops
.
gl
.
p_glGenTextures
(
1
,
&
tex2
);
gl_info
->
gl_ops
.
gl
.
p_glBindTexture
(
GL_TEXTURE_2D
,
tex2
);
gl_info
->
gl_ops
.
gl
.
p_glCopyTexImage2D
(
GL_TEXTURE_2D
,
0
,
GL_RGBA8
,
0
,
0
,
16
,
16
,
0
);
gl_info
->
gl_ops
.
gl
.
p_glGetTexImage
(
GL_TEXTURE_2D
,
0
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
readback
);
checkGLcall
(
"Post-pixelshader blending check"
);
...
...
@@ -1154,9 +1151,6 @@ static void check_fbo_compat(const struct wined3d_gl_info *gl_info, struct wined
TRACE
(
"Color output: %#x
\n
"
,
color
);
format
->
flags
|=
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
;
}
gl_info
->
gl_ops
.
gl
.
p_glBindTexture
(
GL_TEXTURE_2D
,
tex
);
gl_info
->
gl_ops
.
gl
.
p_glDeleteTextures
(
1
,
&
tex2
);
}
if
(
gl_info
->
supported
[
ARB_FRAMEBUFFER_OBJECT
]
...
...
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