Fix uninitialized memory access if a FShaderProgram is destroyed without being fully compiled and linked
This commit is contained in:
parent
960038bb81
commit
b68bbaf617
2 changed files with 10 additions and 0 deletions
|
|
@ -52,6 +52,12 @@
|
|||
#include "i_system.h"
|
||||
#include "doomerrors.h"
|
||||
|
||||
FShaderProgram::FShaderProgram()
|
||||
{
|
||||
for (int i = 0; i < NumShaderTypes; i++)
|
||||
mShaders[i] = 0;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// Free shader program resources
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue