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
f5e289c6
Commit
f5e289c6
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_set().
parent
86db5b60
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
surface.c
dlls/wined3d/surface.c
+8
-2
No files found.
dlls/wined3d/surface.c
View file @
f5e289c6
...
...
@@ -6340,6 +6340,12 @@ static void ffp_blit_p8_upload_palette(const struct wined3d_surface *surface, co
static
HRESULT
ffp_blit_set
(
void
*
blit_priv
,
struct
wined3d_context
*
context
,
const
struct
wined3d_surface
*
surface
)
{
enum
complex_fixup
fixup
=
get_complex_fixup
(
surface
->
resource
.
format
->
color_fixup
);
GLenum
target
;
if
(
surface
->
container
.
type
==
WINED3D_CONTAINER_TEXTURE
)
target
=
surface
->
container
.
u
.
texture
->
target
;
else
target
=
surface
->
texture_target
;
/* When EXT_PALETTED_TEXTURE is around, palette conversion is done by the GPU
* else the surface is converted in software at upload time in LoadLocation.
...
...
@@ -6349,8 +6355,8 @@ static HRESULT ffp_blit_set(void *blit_priv, struct wined3d_context *context, co
ffp_blit_p8_upload_palette
(
surface
,
context
->
gl_info
);
ENTER_GL
();
glEnable
(
surface
->
texture_
target
);
checkGLcall
(
"glEnable(
surface->texture_
target)"
);
glEnable
(
target
);
checkGLcall
(
"glEnable(target)"
);
LEAVE_GL
();
return
WINED3D_OK
;
}
...
...
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