Skip to content

Commit

Permalink
MorphOS: cleanup context opengl
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 committed Nov 14, 2024
1 parent 5901ae0 commit 935379e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/morphos/SDL_mosopengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ MOS_GL_CreateContext(_THIS, SDL_Window * window)
D("[%s] MOS_GL_InitContext SUCCES 0x%08lx, data->__tglContext=0x%08lx\n", __FUNCTION__, glcont, data->__tglContext);

*SDL2Base->MyGLContext = glcont;


GLClearColor(glcont, 0.0f, 0.0f, 0.0f, 1.0f);
GLClear(glcont, GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);

return glcont;
} else {
D("[%s] MOS_GL_InitContext FAILED 0x%08lx, data->__tglContext=0x%08lx\n", __FUNCTION__, glcont, data->__tglContext);
Expand Down

0 comments on commit 935379e

Please sign in to comment.