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
9e94cece
Commit
9e94cece
authored
Nov 30, 2002
by
Lionel Ulmer
Committed by
Alexandre Julliard
Nov 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added enumeration of ZBuffer format.
parent
109fb9c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
mesa.c
dlls/ddraw/direct3d/mesa.c
+27
-1
No files found.
dlls/ddraw/direct3d/mesa.c
View file @
9e94cece
...
...
@@ -267,6 +267,32 @@ GL_IDirect3DImpl_3_FindDevice(LPDIRECT3D3 iface,
return
d3ddevice_find
(
This
,
lpD3DDFS
,
lpD3DFDR
,
3
);
}
HRESULT
WINAPI
GL_IDirect3DImpl_7_3T_EnumZBufferFormats
(
LPDIRECT3D7
iface
,
REFCLSID
riidDevice
,
LPD3DENUMPIXELFORMATSCALLBACK
lpEnumCallback
,
LPVOID
lpContext
)
{
ICOM_THIS_FROM
(
IDirect3DImpl
,
IDirect3D7
,
iface
);
DDPIXELFORMAT
pformat
;
TRACE
(
"(%p/%p)->(%s,%p,%p)
\n
"
,
This
,
iface
,
debugstr_guid
(
riidDevice
),
lpEnumCallback
,
lpContext
);
memset
(
&
pformat
,
0
,
sizeof
(
pformat
));
pformat
.
dwSize
=
sizeof
(
DDPIXELFORMAT
);
pformat
.
dwFourCC
=
0
;
TRACE
(
"Enumerating dummy ZBuffer format (16 bits)
\n
"
);
pformat
.
dwFlags
=
DDPF_ZBUFFER
;
pformat
.
u1
.
dwZBufferBitDepth
=
16
;
pformat
.
u3
.
dwZBitMask
=
0x0000FFFF
;
pformat
.
u5
.
dwRGBZBitMask
=
0x0000FFFF
;
/* Whatever the return value, stop here.. */
lpEnumCallback
(
&
pformat
,
lpContext
);
return
D3D_OK
;
}
static
void
light_released
(
IDirect3DImpl
*
This
,
GLenum
light_num
)
{
IDirect3DGLImpl
*
glThis
=
(
IDirect3DGLImpl
*
)
This
;
...
...
@@ -288,7 +314,7 @@ ICOM_VTABLE(IDirect3D7) VTABLE_IDirect3D7 =
XCAST
(
EnumDevices
)
Main_IDirect3DImpl_7_EnumDevices
,
XCAST
(
CreateDevice
)
Main_IDirect3DImpl_7_CreateDevice
,
XCAST
(
CreateVertexBuffer
)
Main_IDirect3DImpl_7_3T_CreateVertexBuffer
,
XCAST
(
EnumZBufferFormats
)
Main
_IDirect3DImpl_7_3T_EnumZBufferFormats
,
XCAST
(
EnumZBufferFormats
)
GL
_IDirect3DImpl_7_3T_EnumZBufferFormats
,
XCAST
(
EvictManagedTextures
)
Main_IDirect3DImpl_7_3T_EvictManagedTextures
,
};
...
...
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