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
627260f8
Commit
627260f8
authored
Dec 06, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid crashes in ddraw.dll when loading it without x11drv, for
instance from wineprefixcreate in a text mode console.
parent
d921d161
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+6
-0
hal.c
dlls/ddraw/ddraw/hal.c
+3
-0
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
627260f8
...
...
@@ -4212,6 +4212,12 @@ d3ddevice_init_at_startup(void *gl_handle)
int
major
,
minor
,
patch
,
num_parsed
;
TRACE
(
"Initializing GL...
\n
"
);
if
(
!
drawable
)
{
WARN
(
"x11drv not loaded - D3D support disabled!
\n
"
);
return
FALSE
;
}
/* Get a default rendering context to have the 'caps' function query some info from GL */
device_context
=
GetDC
(
0
);
...
...
dlls/ddraw/ddraw/hal.c
View file @
627260f8
...
...
@@ -213,6 +213,9 @@ static BOOL initialize(void)
static
void
cleanup
(
void
)
{
DDHAL_DESTROYDRIVERDATA
data
;
if
(
!
dd_cbs
.
HALDD
.
DestroyDriver
)
return
;
data
.
lpDD
=
NULL
;
data
.
ddRVal
=
0
;
data
.
DestroyDriver
=
dd_cbs
.
HALDD
.
DestroyDriver
;
...
...
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