Hot answers tagged

2

I was able to debug this using RenderDoc (Thanks Tyyppi_77 for the suggestion). I was calling SDL_GL_SwapWindow every time I cleared the screen, but did not do so after drawing the triangle to the screen. This caused only the background clear to be shown. The proper fix was to remove the SDL_GL_SwapWindow call from the screen clearing method and only call it ...


Only top voted, non community-wiki answers of a minimum length are eligible