Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d030c5ad
Commit
d030c5ad
authored
May 16, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't allow 3D depth textures.
parent
87bf9c99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
utils.c
dlls/wined3d/utils.c
+8
-2
No files found.
dlls/wined3d/utils.c
View file @
d030c5ad
...
...
@@ -1857,13 +1857,19 @@ static BOOL init_format_texture_info(struct wined3d_adapter *adapter, struct win
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_1D
]
|=
format_texture_info
[
i
].
flags
;
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_2D
]
|=
format_texture_info
[
i
].
flags
;
if
(
gl_info
->
supported
[
EXT_TEXTURE3D
])
format
->
flags
[
WINED3D_GL_RES_TYPE_BUFFER
]
|=
format_texture_info
[
i
].
flags
;
/* GL_ARB_depth_texture does not support 3D textures. It also says "cube textures are
* problematic", but doesn't explicitly mandate that an error is generated. */
if
(
gl_info
->
supported
[
EXT_TEXTURE3D
]
&&
!
(
format_texture_info
[
i
].
flags
&
(
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_STENCIL
)))
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_3D
]
|=
format_texture_info
[
i
].
flags
;
if
(
gl_info
->
supported
[
ARB_TEXTURE_CUBE_MAP
])
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_CUBE
]
|=
format_texture_info
[
i
].
flags
;
if
(
gl_info
->
supported
[
ARB_TEXTURE_RECTANGLE
])
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_RECT
]
|=
format_texture_info
[
i
].
flags
;
format
->
flags
[
WINED3D_GL_RES_TYPE_BUFFER
]
|=
format_texture_info
[
i
].
flags
;
if
(
gl_info
->
supported
[
ARB_INTERNALFORMAT_QUERY2
])
{
...
...
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