mirror of https://github.com/ZDoom/qzdoom.git
Fixed harmless uninitialized variables warnings
No more 'variable is used uninitialized whenever switch default is taken' warnings reported by GCC/Clang
This commit is contained in:
parent
9ed2da176e
commit
d77718d422
|
@ -482,7 +482,7 @@ GLuint FGLRenderBuffers::Create2DTexture(const FString &name, GLuint format, int
|
|||
glBindTexture(GL_TEXTURE_2D, handle);
|
||||
FGLDebug::LabelObject(GL_TEXTURE, handle, name);
|
||||
|
||||
GLenum dataformat, datatype;
|
||||
GLenum dataformat = 0, datatype = 0;
|
||||
switch (format)
|
||||
{
|
||||
case GL_RGBA8: dataformat = GL_RGBA; datatype = GL_UNSIGNED_BYTE; break;
|
||||
|
|
Loading…
Reference in New Issue