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);
|
u = mGLES2UniformListSize(&uniformVector);
|
||||||
struct mGLES2Uniform* uniformBlock;
|
struct mGLES2Uniform* uniformBlock = NULL;
|
||||||
if (u) {
|
if (u) {
|
||||||
uniformBlock = calloc(u, sizeof(*uniformBlock));
|
uniformBlock = calloc(u, sizeof(*uniformBlock));
|
||||||
memcpy(uniformBlock, mGLES2UniformListGetPointer(&uniformVector, 0), sizeof(*uniformBlock) * u);
|
memcpy(uniformBlock, mGLES2UniformListGetPointer(&uniformVector, 0), sizeof(*uniformBlock) * u);
|
||||||
|
|
|
@ -86,8 +86,8 @@ struct mGLES2Context {
|
||||||
struct mSize imageSizes[VIDEO_LAYER_MAX];
|
struct mSize imageSizes[VIDEO_LAYER_MAX];
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
unsigned width;
|
int width;
|
||||||
unsigned height;
|
int height;
|
||||||
|
|
||||||
struct mGLES2Shader initialShader;
|
struct mGLES2Shader initialShader;
|
||||||
struct mGLES2Shader finalShader;
|
struct mGLES2Shader finalShader;
|
||||||
|
|
Loading…
Reference in New Issue