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
28a2c7ab
Commit
28a2c7ab
authored
Mar 21, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the format table instead of WGL-checks in CheckDepthStencilMatch when FBOs are used.
parent
5ffb0889
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
directx.c
dlls/wined3d/directx.c
+19
-10
No files found.
dlls/wined3d/directx.c
View file @
28a2c7ab
...
...
@@ -2965,15 +2965,26 @@ static HRESULT WINAPI IWineD3DImpl_CheckDepthStencilMatch(IWineD3D *iface, UINT
adapter
=
&
This
->
adapters
[
Adapter
];
rt_format_desc
=
getFormatDescEntry
(
RenderTargetFormat
,
&
adapter
->
gl_info
);
ds_format_desc
=
getFormatDescEntry
(
DepthStencilFormat
,
&
adapter
->
gl_info
);
cfgs
=
adapter
->
cfgs
;
nCfgs
=
adapter
->
nCfgs
;
for
(
it
=
0
;
it
<
nCfgs
;
++
it
)
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt
(
&
adapter
->
gl_info
,
&
cfgs
[
it
],
rt_format_desc
))
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
&
adapter
->
gl_info
,
&
cfgs
[
it
],
ds_format_desc
))
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
((
rt_format_desc
->
Flags
&
WINED3DFMT_FLAG_RENDERTARGET
)
&&
(
ds_format_desc
->
Flags
&
(
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_STENCIL
)))
{
TRACE_
(
d3d_caps
)(
"(%p) : Formats matched
\n
"
,
This
);
return
WINED3D_OK
;
}
}
else
{
cfgs
=
adapter
->
cfgs
;
nCfgs
=
adapter
->
nCfgs
;
for
(
it
=
0
;
it
<
nCfgs
;
++
it
)
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt
(
&
adapter
->
gl_info
,
&
cfgs
[
it
],
rt_format_desc
))
{
TRACE_
(
d3d_caps
)(
"(%p) : Formats matched
\n
"
,
This
);
return
WINED3D_OK
;
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
&
adapter
->
gl_info
,
&
cfgs
[
it
],
ds_format_desc
))
{
TRACE_
(
d3d_caps
)(
"(%p) : Formats matched
\n
"
,
This
);
return
WINED3D_OK
;
}
}
}
}
...
...
@@ -3200,7 +3211,6 @@ static BOOL CheckDepthStencilCapability(struct wined3d_adapter *adapter,
/* Only allow depth/stencil formats */
if
(
!
(
ds_format_desc
->
depth_size
||
ds_format_desc
->
stencil_size
))
return
FALSE
;
/* Walk through all WGL pixel formats to find a match */
for
(
it
=
0
;
it
<
adapter
->
nCfgs
;
++
it
)
{
...
...
@@ -3231,7 +3241,6 @@ static BOOL CheckRenderTargetCapability(struct wined3d_adapter *adapter,
{
/* Filter out non-RT formats */
if
(
!
(
check_format_desc
->
Flags
&
WINED3DFMT_FLAG_RENDERTARGET
))
return
FALSE
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_BACKBUFFER
)
{
WineD3D_PixelFormat
*
cfgs
=
adapter
->
cfgs
;
int
it
;
...
...
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