comparison render_sdl.c @ 2376:1c09f5be285b

Very basic UI for media player
author Michael Pavone <pavone@retrodev.com>
date Fri, 17 Nov 2023 01:05:32 -0800
parents 6bcc2ab01ac6
children ff2f18dac84b
comparison
equal deleted inserted replaced
2375:02c04196c2da 2376:1c09f5be285b
1863 1863
1864 void render_update_display() 1864 void render_update_display()
1865 { 1865 {
1866 #ifndef DISABLE_OPENGL 1866 #ifndef DISABLE_OPENGL
1867 if (render_gl) { 1867 if (render_gl) {
1868 SDL_GL_MakeCurrent(main_window, main_context);
1868 glClearColor(0.0f, 0.0f, 0.0f, 1.0f); 1869 glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
1869 glClear(GL_COLOR_BUFFER_BIT); 1870 glClear(GL_COLOR_BUFFER_BIT);
1870 1871
1871 glUseProgram(program); 1872 glUseProgram(program);
1872 glActiveTexture(GL_TEXTURE0); 1873 glActiveTexture(GL_TEXTURE0);