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
fc064cb0
Commit
fc064cb0
authored
Mar 09, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use primary_render_target_is_p8 in read_from_framebuffer.
parent
785e6fa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
surface.c
dlls/wined3d/surface.c
+3
-3
No files found.
dlls/wined3d/surface.c
View file @
fc064cb0
...
...
@@ -690,7 +690,7 @@ static void read_from_framebuffer(IWineD3DSurfaceImpl *This, CONST RECT *rect, v
{
case
WINED3DFMT_P8
:
{
if
(
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
{
if
(
primary_render_target_is_p8
(
myDevice
)
)
{
/* In case of P8 render targets the index is stored in the alpha component */
fmt
=
GL_ALPHA
;
type
=
GL_UNSIGNED_BYTE
;
...
...
@@ -792,9 +792,9 @@ static void read_from_framebuffer(IWineD3DSurfaceImpl *This, CONST RECT *rect, v
/* For P8 textures we need to perform an inverse palette lookup. This is done by searching for a palette
* index which matches the RGB value. Note this isn't guaranteed to work when there are multiple entries for
* the same color but we have no choice.
* In case of render targets, the index is stored in the alpha component so no conversion is needed.
* In case of
P8
render targets, the index is stored in the alpha component so no conversion is needed.
*/
if
((
This
->
resource
.
format
==
WINED3DFMT_P8
)
&&
!
(
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
))
{
if
((
This
->
resource
.
format
==
WINED3DFMT_P8
)
&&
!
primary_render_target_is_p8
(
myDevice
))
{
PALETTEENTRY
*
pal
;
DWORD
width
=
pitch
/
3
;
int
x
,
y
,
c
;
...
...
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