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
733d4b5e
Commit
733d4b5e
authored
Jun 09, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't use depth textures without ARB_depth_texture.
parent
28af7b40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
utils.c
dlls/wined3d/utils.c
+10
-0
No files found.
dlls/wined3d/utils.c
View file @
733d4b5e
...
...
@@ -2121,6 +2121,16 @@ static BOOL init_format_texture_info(struct wined3d_adapter *adapter, struct win
if
((
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_2D
]
&
WINED3DFMT_FLAG_SRGB_WRITE
)
&&
!
srgb_write
)
format_clear_flag
(
format
,
WINED3DFMT_FLAG_SRGB_WRITE
);
if
(
!
gl_info
->
supported
[
ARB_DEPTH_TEXTURE
]
&&
format_texture_info
[
i
].
flags
&
(
WINED3DFMT_FLAG_DEPTH
|
WINED3DFMT_FLAG_STENCIL
))
{
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_1D
]
&=
~
WINED3DFMT_FLAG_TEXTURE
;
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_2D
]
&=
~
WINED3DFMT_FLAG_TEXTURE
;
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_3D
]
&=
~
WINED3DFMT_FLAG_TEXTURE
;
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_CUBE
]
&=
~
WINED3DFMT_FLAG_TEXTURE
;
format
->
flags
[
WINED3D_GL_RES_TYPE_TEX_RECT
]
&=
~
WINED3DFMT_FLAG_TEXTURE
;
}
}
/* Texture conversion stuff */
...
...
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