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
ff48c3ba
Commit
ff48c3ba
authored
Apr 18, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly check if a format has a conversion function in wined3d_check_device_format().
parent
0e32c9a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
34 deletions
+11
-34
directx.c
dlls/wined3d/directx.c
+11
-34
No files found.
dlls/wined3d/directx.c
View file @
ff48c3ba
...
...
@@ -3959,47 +3959,24 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
* it would be a big performance hit. Unless we hit an application
* needing one of those formats, don't advertize them to avoid
* leading applications into temptation. The windows drivers don't
* support most of those formats on volumes anyway, except for
* WINED3DFMT_R32_FLOAT. */
switch
(
check_format_id
)
* support most of those formats on volumes anyway. */
if
(
format
->
convert
)
{
case
WINED3DFMT_P8_UINT
:
case
WINED3DFMT_L4A4_UNORM
:
case
WINED3DFMT_R32_FLOAT
:
case
WINED3DFMT_R16_FLOAT
:
case
WINED3DFMT_R8G8_SNORM_L8X8_UNORM
:
case
WINED3DFMT_R5G5_SNORM_L6_UNORM
:
case
WINED3DFMT_R16G16_UNORM
:
TRACE
(
"[FAILED] - No converted formats on volumes.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
case
WINED3DFMT_R8G8B8A8_SNORM
:
case
WINED3DFMT_R16G16_SNORM
:
if
(
!
gl_info
->
supported
[
NV_TEXTURE_SHADER
])
{
TRACE
(
"[FAILED] - No converted formats on volumes.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
}
break
;
case
WINED3DFMT_R8G8_SNORM
:
if
(
!
gl_info
->
supported
[
NV_TEXTURE_SHADER
])
{
TRACE
(
"[FAILED] - No converted formats on volumes.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
}
break
;
TRACE
(
"[FAILED] - No converted formats on volumes.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
}
/* The GL_EXT_texture_compression_s3tc spec requires that loading
* an s3tc compressed texture results in an error. While the D3D
* refrast does support s3tc volumes, at least the nvidia Windows
* driver does not, so we're free not to support this format. */
switch
(
check_format_id
)
{
case
WINED3DFMT_DXT1
:
case
WINED3DFMT_DXT2
:
case
WINED3DFMT_DXT3
:
case
WINED3DFMT_DXT4
:
case
WINED3DFMT_DXT5
:
/* The GL_EXT_texture_compression_s3tc spec requires that
* loading an s3tc compressed texture results in an error.
* While the D3D refrast does support s3tc volumes, at
* least the nvidia windows driver does not, so we're free
* not to support this format. */
TRACE
(
"[FAILED] - DXTn does not support 3D textures.
\n
"
);
return
WINED3DERR_NOTAVAILABLE
;
...
...
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