prevent reads of uninitialized memory.

This commit is contained in:
aliaspider 2018-03-22 22:25:04 +01:00
parent 8fcf93e462
commit 23dae72bce
2 changed files with 4 additions and 4 deletions

View file

@ -387,8 +387,8 @@ protected:
bool gameUsesSequentialCopies_ = false;
// Sampled in BeginFrame for safety.
float renderWidth_;
float renderHeight_;
float renderWidth_ = 0.0f;
float renderHeight_ = 0.0f;
int pixelWidth_;
int pixelHeight_;
int bloomHack_ = 0;

View file

@ -332,8 +332,8 @@ protected:
bool debugRecording_;
bool interruptsEnabled_;
bool resized_;
DrawType lastDraw_;
GEPrimitiveType lastPrim_;
DrawType lastDraw_ = DRAW_UNKNOWN;
GEPrimitiveType lastPrim_ = GE_PRIM_INVALID;
int vertexCost_ = 0;