DXGL r385 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r384
|
r385
|
r386
>
Date:
00:29, 12 June 2013
Author:
admin
Status:
new
Tags:
Comment:
Fix dynamic allocation of shader array.
Modified paths:
/ddraw/shadergen.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/shadergen.cpp
—
—
@@ -127,8 +127,9 @@
128
128
if(genshaders[i].shader.vs) glDeleteShader(genshaders[i].shader.vs);
129
129
if(genshaders[i].shader.fsrc) delete genshaders[i].shader.fsrc;
130
130
if(genshaders[i].shader.vsrc) delete genshaders[i].shader.vsrc;
131
- if(genshaders) free(genshaders);
132
131
}
132
+ if(genshaders) free(genshaders);
133
+ genshaders = NULL;
133
134
current_genshader = -1;
134
135
shadercount = 0;
135
136
genindex = 0;
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