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
1453baf6
Commit
1453baf6
authored
Sep 11, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly check if the swapchain format is WINED3DFMT_P8_UINT in…
wined3d: Properly check if the swapchain format is WINED3DFMT_P8_UINT in primary_render_target_is_p8().
parent
aea8d5c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
surface.c
dlls/wined3d/surface.c
+1
-8
No files found.
dlls/wined3d/surface.c
View file @
1453baf6
...
...
@@ -1292,14 +1292,7 @@ static BOOL fbo_blit_supported(const struct wined3d_gl_info *gl_info, enum wined
/* This function checks if the primary render target uses the 8bit paletted format. */
static
BOOL
primary_render_target_is_p8
(
const
struct
wined3d_device
*
device
)
{
if
(
device
->
fb
.
render_targets
&&
device
->
fb
.
render_targets
[
0
])
{
const
struct
wined3d_surface
*
render_target
=
device
->
fb
.
render_targets
[
0
];
if
((
render_target
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
&&
(
render_target
->
resource
.
format
->
id
==
WINED3DFMT_P8_UINT
))
return
TRUE
;
}
return
FALSE
;
return
device
->
swapchains
[
0
]
->
desc
.
backbuffer_format
==
WINED3DFMT_P8_UINT
;
}
static
BOOL
surface_convert_color_to_float
(
const
struct
wined3d_surface
*
surface
,
...
...
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