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
37e872e9
Commit
37e872e9
authored
Dec 16, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Some improvements for SFLAG_CONVERTED checking.
We can check this flag before setting up the gl lock, and add the surface format to the FIXME.
parent
7a1d35e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
surface.c
dlls/wined3d/surface.c
+4
-6
No files found.
dlls/wined3d/surface.c
View file @
37e872e9
...
...
@@ -47,6 +47,10 @@ static void surface_download_data(IWineD3DSurfaceImpl *This) {
if
(
myDevice
->
createParms
.
BehaviorFlags
&
WINED3DCREATE_MULTITHREADED
)
{
ActivateContext
(
myDevice
,
myDevice
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
}
if
(
This
->
Flags
&
SFLAG_CONVERTED
)
{
FIXME
(
"Read back converted textures unsupported, format=%s
\n
"
,
debug_d3dformat
(
This
->
resource
.
format
));
return
;
}
ENTER_GL
();
/* Make sure that a proper texture unit is selected, bind the texture
...
...
@@ -86,12 +90,6 @@ static void surface_download_data(IWineD3DSurfaceImpl *This) {
int
src_pitch
=
0
;
int
dst_pitch
=
0
;
if
(
This
->
Flags
&
SFLAG_CONVERTED
)
{
FIXME
(
"Read back converted textures unsupported
\n
"
);
LEAVE_GL
();
return
;
}
if
(
This
->
Flags
&
SFLAG_NONPOW2
)
{
unsigned
char
alignment
=
This
->
resource
.
wineD3DDevice
->
surface_alignment
;
src_pitch
=
This
->
bytesPerPixel
*
This
->
pow2Width
;
...
...
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