From 56d21feb10f5efd95912f0173eef66265107cb8b Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 10 Aug 2023 12:09:24 -0700 Subject: [PATCH] OpenGL: Fix warnings --- src/platform/opengl/gles2.c | 2 +- src/platform/opengl/gles2.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/opengl/gles2.c b/src/platform/opengl/gles2.c index bf5642e22..469047b19 100644 --- a/src/platform/opengl/gles2.c +++ b/src/platform/opengl/gles2.c @@ -1146,7 +1146,7 @@ bool mGLES2ShaderLoad(struct VideoShader* shader, struct VDir* dir) { } } u = mGLES2UniformListSize(&uniformVector); - struct mGLES2Uniform* uniformBlock; + struct mGLES2Uniform* uniformBlock = NULL; if (u) { uniformBlock = calloc(u, sizeof(*uniformBlock)); memcpy(uniformBlock, mGLES2UniformListGetPointer(&uniformVector, 0), sizeof(*uniformBlock) * u); diff --git a/src/platform/opengl/gles2.h b/src/platform/opengl/gles2.h index d98ff22c4..e53a1bab5 100644 --- a/src/platform/opengl/gles2.h +++ b/src/platform/opengl/gles2.h @@ -86,8 +86,8 @@ struct mGLES2Context { struct mSize imageSizes[VIDEO_LAYER_MAX]; int x; int y; - unsigned width; - unsigned height; + int width; + int height; struct mGLES2Shader initialShader; struct mGLES2Shader finalShader;