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
f0fb1999
Commit
f0fb1999
authored
Jul 17, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the proper texture target in ffp_blit_p8_upload_palette().
parent
092ba1e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
surface.c
dlls/wined3d/surface.c
+7
-1
No files found.
dlls/wined3d/surface.c
View file @
f0fb1999
...
...
@@ -6333,12 +6333,18 @@ static void ffp_blit_p8_upload_palette(const struct wined3d_surface *surface, co
{
BYTE
table
[
256
][
4
];
BOOL
colorkey_active
=
(
surface
->
CKeyFlags
&
WINEDDSD_CKSRCBLT
)
?
TRUE
:
FALSE
;
GLenum
target
;
if
(
surface
->
container
.
type
==
WINED3D_CONTAINER_TEXTURE
)
target
=
surface
->
container
.
u
.
texture
->
target
;
else
target
=
surface
->
texture_target
;
d3dfmt_p8_init_palette
(
surface
,
table
,
colorkey_active
);
TRACE
(
"Using GL_EXT_PALETTED_TEXTURE for 8-bit paletted texture support
\n
"
);
ENTER_GL
();
GL_EXTCALL
(
glColorTableEXT
(
surface
->
texture_
target
,
GL_RGBA
,
256
,
GL_RGBA
,
GL_UNSIGNED_BYTE
,
table
));
GL_EXTCALL
(
glColorTableEXT
(
target
,
GL_RGBA
,
256
,
GL_RGBA
,
GL_UNSIGNED_BYTE
,
table
));
LEAVE_GL
();
}
...
...
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