Skip to content

Commit

Permalink
Warning fixes: Ensure all class variables are initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdoeffinger committed Apr 13, 2019
1 parent ec85a86 commit b2eb945
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions impl11/ddraw/DeviceResources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ struct MainVertex

DeviceResources::DeviceResources()
{
this->_displayTempWidth = 0;
this->_displayTempHeight = 0;
this->_displayTempBpp = 0;

this->_displayWidth = 0;
this->_displayHeight = 0;
this->_displayBpp = 0;
Expand All @@ -87,6 +91,7 @@ DeviceResources::DeviceResources()
this->_refreshRate = { 0, 1 };
this->_are16BppTexturesSupported = false;
this->_use16BppMainDisplayTexture = false;
this->_mainDisplayTextureBpp = 0;

const float color[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
memcpy(this->clearColor, &color, sizeof(color));
Expand Down

0 comments on commit b2eb945

Please sign in to comment.