#203 OpenGL window not refreshed!


Reproduced this bug on windows Vista (mingw 4.8) and Debian 7.0 (GCC 4.6), the OpenGL window is refreshed only when resized!....


Bugs: #203


  • Diederick C. Niehorster

    I do not have this problem. Could you try with current trunk? There have been many changes since the last (2.8.1) release.

  • Demone

    Demone - 2014-01-03

    Yes, same problem present on Win Vista, Ubuntu and Debian I downloaded and compiled the last trunk. I never used OS interface directly for accessing OpenGL, but if you can provide some information where to start I can try to debug it for you.

  • Demone

    Demone - 2014-01-03

    Additional info, GlutPostRedisplay fix the problem. Basically i think this is not a bug. Many tutorials uses Idle without calling glutPostRedisplay, so if there was a bug it was in older versions (many tutorials are years old) of glut/freeglut. I'm looking actually at MainLoop to get a deep idea of what is going on

    Last edit: Demone 2014-01-03
    • Diederick C. Niehorster

      Hi Demone,

      Indeed, drawing directly from the idle function is not the way you are
      supposed to do things, that demo sets a terrible example.

      Instead, in the idle function you could call glutPostRedisplay, which
      will make sure your glutDisplayFunc gets called. You might as well
      glutPostRedisplay at the end your display function however, and do
      away with the idle function all together.


      On Fri, Jan 3, 2014 at 7:52 PM, Demone fixeworks@users.sf.net wrote:

      Additional info, GlutPostRedisplay fix the problem, however many tutorial on
      the nets assume freeglut updating automatically in Idle function even when
      PostRedisplay is not called. So are all code examples in the net wrong, or
      freeglut just need to call Implicitly PostRedisplay after calling the Idle

      [bugs:#203] OpenGL window not refreshed!

      Status: open
      Created: Sat Nov 16, 2013 02:40 PM UTC by Demone
      Last Updated: Fri Jan 03, 2014 11:40 AM UTC
      Owner: nobody

      Reproduced this bug on windows Vista (mingw 4.8) and Debian 7.0 (GCC 4.6),
      the OpenGL window is refreshed only when resized!....

      Sent from sourceforge.net because you indicated interest in

      To unsubscribe from further messages, please visit



      Bugs: #203

  • John Tsiombikas

    John Tsiombikas - 2015-04-01
    • status: open --> closed-invalid
    • Group: -->

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks