DXGL r166 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r165
|
r166
|
r167
>
Date:
21:40, 5 June 2012
Author:
admin
Status:
new
Tags:
Comment:
Fix DDraw shutdown crash
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
/ddraw/glRenderer.h
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -209,7 +209,6 @@
210
210
hDC = NULL;
211
211
hRC = NULL;
212
212
PBO = 0;
213
- dead = false;
214
213
hasHWnd = false;
215
214
dib.enabled = false;
216
215
hWnd = hwnd;
—
—
@@ -646,7 +645,7 @@
647
646
_InitGL((int)inputs[0],(int)inputs[1],(int)inputs[2],(int)inputs[3],(HWND)inputs[4],(glDirectDraw7*)inputs[5]);
648
647
LeaveCriticalSection(&cs);
649
648
SetEvent(busy);
650
- while(!dead)
649
+ while(0)
651
650
{
652
651
WaitForSingleObject(start,INFINITE);
653
652
switch(opcode)
—
—
@@ -685,7 +684,7 @@
686
685
PostMessage(hRenderWnd,WM_CLOSE,0,0);
687
686
hRenderWnd = NULL;
688
687
SetEvent(busy);
689
- dead = true;
688
+ return 0;
690
689
break;
691
690
case OP_CREATE:
692
691
outputs[0] = (void*)_MakeTexture((GLint)inputs[0],(GLint)inputs[1],(GLint)inputs[2],(GLint)inputs[3],
Index: ddraw/glRenderer.h
—
—
@@ -125,7 +125,6 @@
126
126
CRITICAL_SECTION cs;
127
127
HANDLE busy;
128
128
HANDLE start;
129
- bool dead;
130
129
};
131
130
132
131
#endif //_GLRENDERER_H
\ No newline at end of file
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version