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
8eb73cd0
Commit
8eb73cd0
authored
Sep 24, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add fallback depth format info for when ARB_depth_texture is not available.
These use the generic GL_DEPTH_COMPONENT internal format, and can't be used for texturing.
parent
436e8686
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
utils.c
dlls/wined3d/utils.c
+16
-0
No files found.
dlls/wined3d/utils.c
View file @
8eb73cd0
...
...
@@ -884,10 +884,18 @@ static const struct wined3d_format_texture_info format_texture_info[] =
|
WINED3DFMT_FLAG_BUMPMAP
,
NV_TEXTURE_SHADER
,
NULL
},
/* Depth stencil formats */
{
WINED3DFMT_D16_LOCKABLE
,
GL_DEPTH_COMPONENT
,
GL_DEPTH_COMPONENT
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
0
,
WINED3DFMT_FLAG_DEPTH
,
WINED3D_GL_EXT_NONE
,
NULL
},
{
WINED3DFMT_D16_LOCKABLE
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
0
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_SHADOW
,
ARB_DEPTH_TEXTURE
,
NULL
},
{
WINED3DFMT_D32_UNORM
,
GL_DEPTH_COMPONENT
,
GL_DEPTH_COMPONENT
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
0
,
WINED3DFMT_FLAG_DEPTH
,
WINED3D_GL_EXT_NONE
,
NULL
},
{
WINED3DFMT_D32_UNORM
,
GL_DEPTH_COMPONENT32_ARB
,
GL_DEPTH_COMPONENT32_ARB
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
0
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_SHADOW
,
...
...
@@ -919,6 +927,10 @@ static const struct wined3d_format_texture_info format_texture_info[] =
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
|
WINED3DFMT_FLAG_FILTERING
|
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_STENCIL
|
WINED3DFMT_FLAG_SHADOW
,
ARB_FRAMEBUFFER_OBJECT
,
NULL
},
{
WINED3DFMT_X8D24_UNORM
,
GL_DEPTH_COMPONENT
,
GL_DEPTH_COMPONENT
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
0
,
WINED3DFMT_FLAG_DEPTH
,
WINED3D_GL_EXT_NONE
,
NULL
},
{
WINED3DFMT_X8D24_UNORM
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
0
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
|
WINED3DFMT_FLAG_FILTERING
...
...
@@ -936,6 +948,10 @@ static const struct wined3d_format_texture_info format_texture_info[] =
GL_DEPTH_STENCIL
,
GL_UNSIGNED_INT_24_8
,
4
,
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_STENCIL
|
WINED3DFMT_FLAG_SHADOW
,
ARB_FRAMEBUFFER_OBJECT
,
convert_s4x4_uint_d24_unorm
},
{
WINED3DFMT_D16_UNORM
,
GL_DEPTH_COMPONENT
,
GL_DEPTH_COMPONENT
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
0
,
WINED3DFMT_FLAG_DEPTH
,
WINED3D_GL_EXT_NONE
,
NULL
},
{
WINED3DFMT_D16_UNORM
,
GL_DEPTH_COMPONENT24_ARB
,
GL_DEPTH_COMPONENT24_ARB
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
0
,
WINED3DFMT_FLAG_TEXTURE
|
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
|
WINED3DFMT_FLAG_FILTERING
...
...
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