Skip to content

Commit

Permalink
sdlgpu: MSVC buildfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Dec 13, 2024
1 parent e648211 commit d97ef11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mojoshader_sdlgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static uint8_t update_uniform_buffer(
if (shader->uniformBufferSize > ctx->uniform_staging_length)
{
ctx->free_fn(ctx->uniform_staging, ctx->malloc_data);
ctx->uniform_staging = ctx->malloc_fn(shader->uniformBufferSize, ctx->malloc_data);
ctx->uniform_staging = (uint8_t*) ctx->malloc_fn(shader->uniformBufferSize, ctx->malloc_data);
ctx->uniform_staging_length = shader->uniformBufferSize;
} // if

Expand Down Expand Up @@ -597,8 +597,8 @@ static MOJOSHADER_sdlProgram *compile_program(
return NULL;
} // if

const char *vshaderSource = vshader->parseData->output;
const char *pshaderSource = pshader->parseData->output;
char *vshaderSource = (char*) vshader->parseData->output;
char *pshaderSource = (char*) pshader->parseData->output;
size_t vshaderCodeSize = vshader->parseData->output_len;
size_t pshaderCodeSize = pshader->parseData->output_len;

Expand Down

0 comments on commit d97ef11

Please sign in to comment.