mirror of https://github.com/mgba-emu/mgba.git
OpenGL: Fix warnings
This commit is contained in:
parent
19e44d59d0
commit
56d21feb10
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue