Jump to content
  • Advertisement
Sign in to follow this  
vonflaken

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!