Skip to content

Commit

Permalink
Fixes some warnings in the C native lib
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelFB committed Oct 6, 2023
1 parent c5650c2 commit 4097906
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Binary file modified Platform/libs/lib64/libFosterPlatform.so
Binary file not shown.
10 changes: 5 additions & 5 deletions Platform/src/foster_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ void FosterFontGetCharacter(FosterFont* font, int glyph, float scale, int* width
{
stbtt_fontinfo* info = (stbtt_fontinfo*)font;

int adv, ox, oy, x0, y0, x1, y1;
int adv, ox, x0, y0, x1, y1;

stbtt_GetGlyphHMetrics(info, glyph, &adv, &ox);
stbtt_GetGlyphBitmapBox(info, glyph, scale, scale, &x0, &y0, &x1, &y1);
Expand Down Expand Up @@ -546,25 +546,25 @@ FosterShader* FosterShaderCreate(FosterShaderData* data)
void FosterShaderGetUniforms(FosterShader* shader, FosterUniformInfo* output, int* count, int max)
{
FOSTER_ASSERT_RUNNING(FosterShaderGetUniforms);
return fstate.device.shaderGetUniforms(shader, output, count, max);
fstate.device.shaderGetUniforms(shader, output, count, max);
}

void FosterShaderSetUniform(FosterShader* shader, int index, float* values)
{
FOSTER_ASSERT_RUNNING(FosterShaderSetUniform);
return fstate.device.shaderSetUniform(shader, index, values);
fstate.device.shaderSetUniform(shader, index, values);
}

void FosterShaderSetTexture(FosterShader* shader, int index, FosterTexture** values)
{
FOSTER_ASSERT_RUNNING(FosterShaderSetTexture);
return fstate.device.shaderSetTexture(shader, index, values);
fstate.device.shaderSetTexture(shader, index, values);
}

void FosterShaderSetSampler(FosterShader* shader, int index, FosterTextureSampler* values)
{
FOSTER_ASSERT_RUNNING(FosterShaderSetSampler);
return fstate.device.shaderSetSampler(shader, index, values);
fstate.device.shaderSetSampler(shader, index, values);
}

void FosterShaderDestroy(FosterShader* shader)
Expand Down
1 change: 0 additions & 1 deletion Platform/src/foster_renderer_opengl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define FOSTER_OPENGL_ENABLED
#ifdef FOSTER_OPENGL_ENABLED

#include "foster_renderer.h"
Expand Down

0 comments on commit 4097906

Please sign in to comment.