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
2b8e900a
Commit
2b8e900a
authored
Jan 15, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Give buffers their own location.
parent
321cd8e8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
surface.c
dlls/wined3d/surface.c
+0
-0
utils.c
dlls/wined3d/utils.c
+2
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+8
-7
No files found.
dlls/wined3d/surface.c
View file @
2b8e900a
This diff is collapsed.
Click to expand it.
dlls/wined3d/utils.c
View file @
2b8e900a
...
...
@@ -2795,7 +2795,7 @@ void dump_color_fixup_desc(struct color_fixup_desc fixup)
}
const
char
*
debug_surflocation
(
DWORD
flag
)
{
char
buf
[
1
5
2
];
char
buf
[
1
7
2
];
buf
[
0
]
=
0
;
if
(
flag
&
SFLAG_INSYSMEM
)
strcat
(
buf
,
" | SFLAG_INSYSMEM"
);
/* 17 */
...
...
@@ -2806,6 +2806,7 @@ const char *debug_surflocation(DWORD flag) {
if
(
flag
&
SFLAG_INRB_RESOLVED
)
strcat
(
buf
,
" | SFLAG_INRB_RESOLVED"
);
/* 22 */
if
(
flag
&
SFLAG_INUSERMEM
)
strcat
(
buf
,
" | SFLAG_INUSERMEM"
);
/* 18 */
if
(
flag
&
SFLAG_INDIB
)
strcat
(
buf
,
" | SFLAG_INDIB"
);
/* 14 */
if
(
flag
&
SFLAG_INBUFFER
)
strcat
(
buf
,
" | SFLAG_INBUFFER"
);
/* 17 */
return
wine_dbg_sprintf
(
"%s"
,
buf
[
0
]
?
buf
+
3
:
"0"
);
}
...
...
dlls/wined3d/wined3d_private.h
View file @
2b8e900a
...
...
@@ -2299,13 +2299,13 @@ void flip_surface(struct wined3d_surface *front, struct wined3d_surface *back) D
#define SFLAG_INSYSMEM 0x00002000
/* The system memory copy is current. */
#define SFLAG_INUSERMEM 0x00004000
/* The user memory copy is current. */
#define SFLAG_INDIB 0x00008000
/* The DIB copy is current. */
#define SFLAG_IN
TEXTURE 0x00010000
/* The GL texture
is current. */
#define SFLAG_IN
SRGBTEX 0x00020000
/* The GL sRGB
texture is current. */
#define SFLAG_IN
DRAWABLE 0x00040000
/* The GL drawabl
e is current. */
#define SFLAG_IN
RB_MULTISAMPLE 0x00080000
/* The multisample renderbuffer
is current. */
#define SFLAG_INRB_
RESOLVED 0x00100000
/* The resolved
renderbuffer is current. */
#define SFLAG_
DISCARDED 0x00200000
/* Surface was discarded, allocating new location is enough
. */
#define SFLAG_
PBO 0x00400000
/* Use a PBO for mapping
. */
#define SFLAG_IN
BUFFER 0x00010000
/* The PBO copy
is current. */
#define SFLAG_IN
TEXTURE 0x00020000
/* The GL
texture is current. */
#define SFLAG_IN
SRGBTEX 0x00040000
/* The GL sRGB textur
e is current. */
#define SFLAG_IN
DRAWABLE 0x00080000
/* The GL drawable
is current. */
#define SFLAG_INRB_
MULTISAMPLE 0x00100000
/* The multisample
renderbuffer is current. */
#define SFLAG_
INRB_RESOLVED 0x00200000
/* The resolved renderbuffer is current
. */
#define SFLAG_
DISCARDED 0x00400000
/* Surface was discarded, allocating new location is enough
. */
/* In some conditions the surface memory must not be freed:
* SFLAG_CONVERTED: Converting the data back would take too long
...
...
@@ -2320,6 +2320,7 @@ void flip_surface(struct wined3d_surface *front, struct wined3d_surface *back) D
#define SFLAG_LOCATIONS (SFLAG_INSYSMEM | \
SFLAG_INUSERMEM | \
SFLAG_INDIB | \
SFLAG_INBUFFER | \
SFLAG_INTEXTURE | \
SFLAG_INSRGBTEX | \
SFLAG_INDRAWABLE | \
...
...
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