Skip to content

Commit

Permalink
RENDERER: initialize variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Nov 9, 2023
1 parent a477db2 commit 4f4485e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/renderergl1/tr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ void GfxInfo_f(void) {
ri.Printf(PRINT_ALL, "GL_EXTENSIONS: ");
// glConfig.extensions_string is a limited length so get the full list directly
if (qglGetStringi) {
GLint numExtensions;
GLint numExtensions = 0;
int i;

qglGetIntegerv(GL_NUM_EXTENSIONS, &numExtensions);
Expand Down
2 changes: 1 addition & 1 deletion code/renderergl2/tr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ static void GfxInfo_f(void) {
ri.Printf(PRINT_ALL, "GL_EXTENSIONS: ");
// glConfig.extensions_string is a limited length so get the full list directly
if (qglGetStringi) {
GLint numExtensions;
GLint numExtensions = 0;
int i;

qglGetIntegerv(GL_NUM_EXTENSIONS, &numExtensions);
Expand Down

0 comments on commit 4f4485e

Please sign in to comment.