OpenGL: Fix warnings

This commit is contained in:
Vicki Pfau 2023-08-10 12:09:24 -07:00
parent 19e44d59d0
commit 56d21feb10
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;