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
44f4e254
Commit
44f4e254
authored
Nov 17, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Nov 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix depth buffer formats to use actual depth textures.
parent
9bf04ecd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
utils.c
dlls/wined3d/utils.c
+9
-9
wined3d_gl.h
include/wine/wined3d_gl.h
+10
-0
No files found.
dlls/wined3d/utils.c
View file @
44f4e254
...
...
@@ -90,16 +90,16 @@ static const PixelFormatDesc formats[] = {
{
WINED3DFMT_W11V11U10
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_A2W10V10U10
,
0xb0000000
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
/* Depth stencil formats */
{
WINED3DFMT_D16_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_
COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D32
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D15S1
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_
COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D24S8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X4S4
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D16
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_COLOR_INDEX
,
GL_COLOR_INDEX
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D16_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_
DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D32
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D15S1
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_
DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D24S8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D24X4S4
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_
DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
},
{
WINED3DFMT_D16
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_L16
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
GL_LUMINANCE16_EXT
,
GL_LUMINANCE
,
GL_UNSIGNED_SHORT
},
{
WINED3DFMT_D32F_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_D24FS8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_D32F_LOCKABLE
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
},
{
WINED3DFMT_D24FS8
,
0x0
,
0x0
,
0x0
,
0x0
,
4
,
FALSE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
},
/* Is this a vertex buffer? */
{
WINED3DFMT_VERTEXDATA
,
0x0
,
0x0
,
0x0
,
0x0
,
0
,
FALSE
,
0
,
0
,
0
},
{
WINED3DFMT_INDEX16
,
0x0
,
0x0
,
0x0
,
0x0
,
2
,
FALSE
,
0
,
0
,
0
},
...
...
include/wine/wined3d_gl.h
View file @
44f4e254
...
...
@@ -51,6 +51,16 @@
* #defines and functions pointer
****************************************************/
/* GL_ARB_depth_texture */
#ifndef GL_ARB_depth_texture
#define GL_ARB_depth_texture 1
#define GL_DEPTH_COMPONENT16_ARB 0x81A5
#define GL_DEPTH_COMPONENT24_ARB 0x81A6
#define GL_DEPTH_COMPONENT32_ARB 0x81A7
#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A
#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B
#endif
/* GL_ARB_draw_buffers */
#ifndef GL_ARB_draw_buffers
#define GL_MAX_DRAW_BUFFERS_ARB 0x8824
...
...
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