Skip to content

Commit

Permalink
Identity-initialize all the GL device matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Sep 9, 2023
1 parent cb5585b commit 93e3299
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Plasma/FeatureLib/pfGLPipeline/plGLDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ plGLDevice::plGLDevice()
: fErrorMsg(), fPipeline(), fImpl(), fWindow(), fDevice(), fActiveThread(), fCurrentProgram()
{
memcpy(fMatrixL2W, kIdentityMatrix, sizeof(GLfloat) * 16);
memcpy(fMatrixW2L, kIdentityMatrix, sizeof(GLfloat) * 16);
memcpy(fMatrixW2C, kIdentityMatrix, sizeof(GLfloat) * 16);
memcpy(fMatrixC2W, kIdentityMatrix, sizeof(GLfloat) * 16);
memcpy(fMatrixProj, kIdentityMatrix, sizeof(GLfloat) * 16);
}

Expand Down

0 comments on commit 93e3299

Please sign in to comment.