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
8673be0b
Commit
8673be0b
authored
Mar 28, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Return a fake pixel format if gl is not loaded.
parent
9e831a87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
utils.c
dlls/wined3d/utils.c
+9
-4
No files found.
dlls/wined3d/utils.c
View file @
8673be0b
...
...
@@ -437,11 +437,16 @@ const StaticPixelFormatDesc *getFormatDescEntry(WINED3DFORMAT fmt, WineD3D_GL_In
idx
=
getFmtIdx
(
WINED3DFMT_UNKNOWN
);
}
if
(
glDesc
)
{
if
(
!
gl_info
)
{
ERR
(
"OpenGL pixel format information was requested, but no gl info structure passed
\n
"
);
return
NULL
;
if
(
!
gl_info
->
gl_formats
)
{
/* If we do not have gl format information, provide a dummy NULL format. This is an easy way to make
* all gl caps check return "unsupported" than catching the lack of gl all over the code. ANSI C requires
* static variables to be initialized to 0.
*/
static
const
GlPixelFormatDesc
dummyFmt
;
*
glDesc
=
&
dummyFmt
;
}
else
{
*
glDesc
=
&
gl_info
->
gl_formats
[
idx
];
}
*
glDesc
=
&
gl_info
->
gl_formats
[
idx
];
}
return
&
formats
[
idx
];
}
...
...
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