Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
28af7b40
Commit
28af7b40
authored
Jun 09, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Require FBO attachability for render targets and depth stencils.
parent
04c3c970
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
resource.c
dlls/wined3d/resource.c
+7
-0
utils.c
dlls/wined3d/utils.c
+1
-1
No files found.
dlls/wined3d/resource.c
View file @
28af7b40
...
...
@@ -114,6 +114,13 @@ HRESULT resource_init(struct wined3d_resource *resource, struct wined3d_device *
WARN
(
"Format %s cannot be used for depth/stencil buffers.
\n
"
,
debug_d3dformat
(
format
->
id
));
continue
;
}
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
&&
usage
&
(
WINED3DUSAGE_RENDERTARGET
|
WINED3DUSAGE_DEPTHSTENCIL
)
&&
!
(
format
->
flags
[
gl_type
]
&
WINED3DFMT_FLAG_FBO_ATTACHABLE
))
{
WARN
(
"Render target or depth stencil is not FBO attachable.
\n
"
);
continue
;
}
if
((
usage
&
WINED3DUSAGE_TEXTURE
)
&&
!
(
format
->
flags
[
gl_type
]
&
WINED3DFMT_FLAG_TEXTURE
))
{
WARN
(
"Format %s cannot be used for texturing.
\n
"
,
debug_d3dformat
(
format
->
id
));
...
...
dlls/wined3d/utils.c
View file @
28af7b40
...
...
@@ -1282,7 +1282,7 @@ static const struct wined3d_format_texture_info format_texture_info[] =
ARB_FRAMEBUFFER_OBJECT
,
NULL
},
{
WINED3DFMT_NULL
,
0
,
0
,
0
,
GL_RGBA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
0
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_RENDERTARGET
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_RENDERTARGET
|
WINED3DFMT_FLAG_FBO_ATTACHABLE
,
ARB_FRAMEBUFFER_OBJECT
,
NULL
},
};
...
...
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