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
5ffe1775
Commit
5ffe1775
authored
Aug 02, 2004
by
Lionel Ulmer
Committed by
Alexandre Julliard
Aug 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix compilation on boxes without OpenGL installed.
- Print the warning message only once.
parent
eac96b56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
main.c
dlls/ddraw/ddraw/main.c
+13
-2
No files found.
dlls/ddraw/ddraw/main.c
View file @
5ffe1775
...
...
@@ -380,6 +380,7 @@ create_texture(IDirectDrawImpl* This, const DDSURFACEDESC2 *pDDSD,
ddsd
.
u4
.
ddpfPixelFormat
=
This
->
pixelformat
;
}
#ifdef HAVE_OPENGL
/* We support for now only DXT1, DXT3 & DXT5 compressed texture formats... */
if
((
ddsd
.
u4
.
ddpfPixelFormat
.
dwFlags
&
DDPF_FOURCC
)
&&
(
ddsd
.
u4
.
ddpfPixelFormat
.
dwFourCC
!=
MAKE_FOURCC
(
'D'
,
'X'
,
'T'
,
'1'
))
&&
...
...
@@ -392,10 +393,20 @@ create_texture(IDirectDrawImpl* This, const DDSURFACEDESC2 *pDDSD,
/* Check if we can really support DXT1, DXT3 & DXT5 */
if
((
ddsd
.
u4
.
ddpfPixelFormat
.
dwFlags
&
DDPF_FOURCC
)
&&
!
GL_extensions
.
s3tc_compressed_texture
&&
!
s3tc_initialized
)
{
ERR
(
"Trying to create DXT1, DXT3 or DXT5 texture which is not supported by the video card!!!
\n
"
);
ERR
(
"However there is a library libtxc_dxtn.so that can be used to do the software decompression...
\n
"
);
static
BOOLEAN
user_warned
=
0
;
if
(
user_warned
==
0
)
{
ERR
(
"Trying to create DXT1, DXT3 or DXT5 texture which is not supported by the video card!!!
\n
"
);
ERR
(
"However there is a library libtxc_dxtn.so that can be used to do the software decompression...
\n
"
);
user_warned
=
1
;
}
return
DDERR_INVALIDPIXELFORMAT
;
}
#else
if
(
ddsd
.
u4
.
ddpfPixelFormat
.
dwFlags
&
DDPF_FOURCC
)
{
return
DDERR_INVALIDPIXELFORMAT
;
}
#endif
if
(
!
(
ddsd
.
dwFlags
&
DDSD_PITCH
))
{
...
...
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