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
3d6ffee0
Commit
3d6ffee0
authored
Nov 23, 2006
by
Jan Zerebecki
Committed by
Alexandre Julliard
Dec 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Rearrange code in CheckDeviceType.
parent
0d66f794
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
directx.c
dlls/wined3d/directx.c
+21
-20
No files found.
dlls/wined3d/directx.c
View file @
3d6ffee0
...
...
@@ -1568,6 +1568,12 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceType(IWineD3D *iface, UINT Adapter
WINED3DFORMAT
DisplayFormat
,
WINED3DFORMAT
BackBufferFormat
,
BOOL
Windowed
)
{
IWineD3DImpl
*
This
=
(
IWineD3DImpl
*
)
iface
;
GLXFBConfig
*
cfgs
=
NULL
;
int
nCfgs
=
0
;
int
it
;
HRESULT
hr
=
WINED3DERR_NOTAVAILABLE
;
WineD3D_Context
*
ctx
;
TRACE_
(
d3d_caps
)(
"(%p)-> (STUB) (Adptr:%d, CheckType:(%x,%s), DispFmt:(%x,%s), BackBuf:(%x,%s), Win?%d): stub
\n
"
,
This
,
Adapter
,
...
...
@@ -1581,29 +1587,24 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceType(IWineD3D *iface, UINT Adapter
return
WINED3DERR_INVALIDCALL
;
}
{
GLXFBConfig
*
cfgs
=
NULL
;
int
nCfgs
=
0
;
int
it
;
HRESULT
hr
=
WINED3DERR_NOTAVAILABLE
;
WineD3D_Context
*
ctx
=
WineD3D_CreateFakeGLContext
();
if
(
NULL
!=
ctx
)
{
cfgs
=
glXGetFBConfigs
(
ctx
->
display
,
DefaultScreen
(
ctx
->
display
),
&
nCfgs
);
for
(
it
=
0
;
it
<
nCfgs
;
++
it
)
{
if
(
IWineD3DImpl_IsGLXFBConfigCompatibleWithRenderFmt
(
ctx
->
display
,
cfgs
[
it
],
DisplayFormat
))
{
hr
=
WINED3D_OK
;
break
;
}
}
XFree
(
cfgs
);
WineD3D_ReleaseFakeGLContext
(
ctx
);
return
hr
;
ctx
=
WineD3D_CreateFakeGLContext
();
if
(
NULL
!=
ctx
)
{
cfgs
=
glXGetFBConfigs
(
ctx
->
display
,
DefaultScreen
(
ctx
->
display
),
&
nCfgs
);
for
(
it
=
0
;
it
<
nCfgs
;
++
it
)
{
if
(
IWineD3DImpl_IsGLXFBConfigCompatibleWithRenderFmt
(
ctx
->
display
,
cfgs
[
it
],
DisplayFormat
))
{
hr
=
WINED3D_OK
;
TRACE_
(
d3d_caps
)(
"OK
\n
"
);
break
;
}
}
XFree
(
cfgs
);
WineD3D_ReleaseFakeGLContext
(
ctx
);
}
return
WINED3DERR_NOTAVAILABLE
;
if
(
hr
!=
WINED3D_OK
)
TRACE_
(
d3d_caps
)(
"returning something different from WINED3D_OK
\n
"
);
return
hr
;
}
static
HRESULT
WINAPI
IWineD3DImpl_CheckDeviceFormat
(
IWineD3D
*
iface
,
UINT
Adapter
,
WINED3DDEVTYPE
DeviceType
,
...
...
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