#203 OpenGL window not refreshed!

open
nobody
None
5
2014-01-03
2013-11-16
Demone
No

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

Related

Bugs: #203

Discussion

  • 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
    • 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.

      Best,
      Dee

      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
      function?


      [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
      https://sourceforge.net/p/freeglut/bugs/203/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #203