Skip to content

Commit

Permalink
Fix gfxResize crash
Browse files Browse the repository at this point in the history
  • Loading branch information
machinamentum committed Nov 25, 2015
1 parent 393ea50 commit 32f1b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcaelina/source/glImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void *gfxMakeCurrent(void* device) {
void gfxResize(int new_width, int new_height) {
CHECK_NULL(g_state);

gfx_device_3ds *state = (gfx_device_3ds*)g_state;
gfx_device_3ds *state = (gfx_device_3ds*) g_state->device;
vramFree(state->gpuOut);
vramFree(state->gpuDOut);
state->gpuOut = (u32*)vramAlloc(new_width * new_height * 4);
Expand Down

0 comments on commit 32f1b0a

Please sign in to comment.