Jump to content
  • Advertisement
Sign in to follow this  
vonflaken

OpenGL [Solved] SDL_GL_SwapWindow seems It doesn't work for me

This topic is 505 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, 

I posted this to be resolved in SDL forums so Im gonna left here the link to original discussion https://discourse.libsdl.org/t/sdl-gl-swapwindow-is-not-working-for-me/22863

I don't want duplicate posts but I want reach the most people I be able to.

 

Tell me If you think this is bad habits so I won't do again in advance.

 

Thanks!

Edited by vonflaken
Issue resolved

Share this post


Link to post
Share on other sites
Advertisement

Please don't just link some other post. Include the actual problem you're having here, as well. If somebody has to go read some other forum thread to find out what the problem is, that decreases their likelihood of bothering to try to help you. It also means if the URL changes or the other site goes down, this thread is useless.

Share this post


Link to post
Share on other sites

Mhhh yhea, appreciate the suggestion and I think you are right, I will follow this rule from now.

Anyway I resolved the problem, I summary here quickly:

I use OpenGL and SDL in the project, my render-loop seems to be working nice but nothing drawn in screen. I debug in RenderDoc and I see sprites blitz in frame buffer so I though the issue was something around buffers no swapping for some reason. At the end, I debugged OpenGL code with glGetError and I catch an error in my code (I generated VAO with glGenBuffers instead of glGenVertexArrays). Now is working nicely.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!