It is currently Sun Sep 24, 2017 3:02 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: OpenGL inside SplitterGadget = BadDrawable error
PostPosted: Wed Aug 16, 2017 9:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 151
Location: UK
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:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL inside SplitterGadget = BadDrawable error
PostPosted: Tue Sep 12, 2017 3:48 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 151
Location: UK
Has anyone else experienced this?

Sorry for the double post.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye