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
91fbd223
Commit
91fbd223
authored
Jul 01, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Print a winediag message if we failed to create a DXTn texture because…
wined3d: Print a winediag message if we failed to create a DXTn texture because of lack of driver support.
parent
8ebc82cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
texture.c
dlls/wined3d/texture.c
+8
-0
No files found.
dlls/wined3d/texture.c
View file @
91fbd223
...
...
@@ -25,6 +25,7 @@
#include "wined3d_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d_texture
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
static
HRESULT
wined3d_texture_init
(
struct
wined3d_texture
*
texture
,
const
struct
wined3d_texture_ops
*
texture_ops
,
UINT
layer_count
,
UINT
level_count
,
const
struct
wined3d_resource_desc
*
desc
,
struct
wined3d_device
*
device
,
...
...
@@ -53,6 +54,13 @@ static HRESULT wined3d_texture_init(struct wined3d_texture *texture, const struc
desc
->
multisample_type
,
desc
->
multisample_quality
,
desc
->
usage
,
desc
->
pool
,
desc
->
width
,
desc
->
height
,
desc
->
depth
,
0
,
parent
,
parent_ops
,
resource_ops
)))
{
static
unsigned
int
once
;
if
((
desc
->
format
==
WINED3DFMT_DXT1
||
desc
->
format
==
WINED3DFMT_DXT2
||
desc
->
format
==
WINED3DFMT_DXT3
||
desc
->
format
==
WINED3DFMT_DXT4
||
desc
->
format
==
WINED3DFMT_DXT5
)
&&
!
(
format
->
flags
&
WINED3DFMT_FLAG_TEXTURE
)
&&
!
once
++
)
ERR_
(
winediag
)(
"The application tried to create a DXTn texture, but the driver does not support them.
\n
"
);
WARN
(
"Failed to initialize resource, returning %#x
\n
"
,
hr
);
return
hr
;
}
...
...
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