[Done] OpenGL inside SplitterGadget = BadDrawable error

Post bugreports for the Linux version here
wombats
Enthusiast
Enthusiast
Posts: 663
Joined: Thu Dec 29, 2011 5:03 pm

[Done] OpenGL inside SplitterGadget = BadDrawable error

Post by wombats »

I previously posted about BadDrawable errors I was experiencing on Linux. I've narrowed the problem down to using an OpenGLGadget inside of a SplitterGadget.

Code: Select all

OpenWindow(0, 0, 0, 530, 320, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)

StringGadget(0, 0, 0, 200, 200, "...")
OpenGLGadget(1, 0, 0, 200, 200)

SplitterGadget(2, 0, 0, WindowWidth(0), WindowHeight(0), 0, 1)

AddWindowTimer(0, 1, 16) ; about 60 fps

Repeat
  Event = WaitWindowEvent()
  
  Select Event
    Case #PB_Event_Timer
      If EventTimer() = 1
        glClear_(#GL_COLOR_BUFFER_BIT)
      EndIf
  EndSelect
  
Until Event = #PB_Event_CloseWindow
wombats
Enthusiast
Enthusiast
Posts: 663
Joined: Thu Dec 29, 2011 5:03 pm

Re: OpenGL inside SplitterGadget = BadDrawable error

Post by wombats »

Has anyone else experienced this?

Sorry for the double post.
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Done] OpenGL inside SplitterGadget = BadDrawable error

Post by Fred »

Fixed.
Post Reply