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
68a5305d
Commit
68a5305d
authored
Aug 25, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the location fixup for ORM_FBO in surface_load_location().
parent
98277e1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
23 deletions
+6
-23
surface.c
dlls/wined3d/surface.c
+6
-23
No files found.
dlls/wined3d/surface.c
View file @
68a5305d
...
...
@@ -5908,6 +5908,12 @@ static HRESULT surface_load_drawable(struct wined3d_surface *surface,
UINT
byte_count
;
BYTE
*
mem
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
&&
surface_is_offscreen
(
surface
))
{
ERR
(
"Trying to load offscreen surface into SFLAG_INDRAWABLE.
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
if
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
)
surface_load_location
(
surface
,
SFLAG_INTEXTURE
,
NULL
);
...
...
@@ -6140,7 +6146,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c
{
struct
wined3d_device
*
device
=
surface
->
resource
.
device
;
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
BOOL
in_fbo
=
FALSE
;
HRESULT
hr
;
TRACE
(
"surface %p, location %s, rect %s.
\n
"
,
surface
,
debug_surflocation
(
location
),
wine_dbgstr_rect
(
rect
));
...
...
@@ -6161,22 +6166,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c
}
}
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
surface_is_offscreen
(
surface
))
{
/* With ORM_FBO, SFLAG_INTEXTURE and SFLAG_INDRAWABLE are the same
* for offscreen targets. Prefer SFLAG_INTEXTURE. */
if
(
location
==
SFLAG_INDRAWABLE
)
location
=
SFLAG_INTEXTURE
;
in_fbo
=
TRUE
;
}
else
{
TRACE
(
"Surface %p is an onscreen surface.
\n
"
,
surface
);
}
}
if
(
location
==
SFLAG_INSRGBTEX
&&
gl_info
->
supported
[
EXT_TEXTURE_SRGB_DECODE
])
location
=
SFLAG_INTEXTURE
;
...
...
@@ -6231,12 +6220,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c
surface_evict_sysmem
(
surface
);
}
if
(
in_fbo
&&
(
surface
->
flags
&
(
SFLAG_INTEXTURE
|
SFLAG_INDRAWABLE
)))
{
/* With ORM_FBO, SFLAG_INTEXTURE and SFLAG_INDRAWABLE are the same for offscreen targets. */
surface
->
flags
|=
(
SFLAG_INTEXTURE
|
SFLAG_INDRAWABLE
);
}
if
(
surface
->
flags
&
(
SFLAG_INTEXTURE
|
SFLAG_INSRGBTEX
)
&&
gl_info
->
supported
[
EXT_TEXTURE_SRGB_DECODE
])
{
...
...
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