DXGL r606 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r605
|
r606
|
r607
>
Date:
19:22, 11 April 2015
Author:
admin
Status:
new
Tags:
Comment:
Fix BufferObject build and object creation.
Fix crash on focus loss before primary surface is created.
Modified paths:
/ddraw/BufferObject.cpp
(modified) (
history
)
/ddraw/BufferObject.h
(modified) (
history
)
/ddraw/glDirectDraw.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/BufferObject.cpp
—
—
@@ -33,6 +33,7 @@
34
34
buffer->ext = ext;
35
35
buffer->util = util;
36
36
ext->glGenBuffers(1, &buffer->buffer);
37
+ *out = buffer;
37
38
}
38
39
39
40
void BufferObject_AddRef(BufferObject *This)
Index: ddraw/BufferObject.h
—
—
@@ -21,6 +21,7 @@
22
22
23
23
#ifdef __cplusplus
24
24
extern "C" {
25
+class glUtil;
25
26
#else
26
27
typedef int glUtil;
27
28
#endif
Index: ddraw/glDirectDraw.cpp
—
—
@@ -1908,7 +1908,7 @@
1909
1909
if(dwFlags & 0xFFFFFFFA) TRACE_RET(HRESULT,23,DDERR_INVALIDPARAMS);
1910
1910
if(dwFlags == 5) TRACE_RET(HRESULT,23,DDERR_INVALIDPARAMS);
1911
1911
if(!lastsync) lastsync = true;
1912
- else primary->RenderScreen(primary->texture,primary,1);
1912
+ else if(primary) primary->RenderScreen(primary->texture,primary,1);
1913
1913
TRACE_EXIT(23,DD_OK);
1914
1914
return DD_OK;
1915
1915
}
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