Opengl & compiz PB4.41

Just starting out? Need help? Post your questions and find answers here.
scrat
User
User
Posts: 34
Joined: Tue Nov 25, 2008 5:00 pm

Opengl & compiz PB4.41

Post by scrat »

hello

When i use desktop effects (compiz) the window program goes black and white after a few seconds (like a zombie program) but the programm run well
Without compiz all is ok

basic code to test (opengl)
active desktop effects
Run the program and wait 5 seconds !

Code: Select all

Enumeration
#Main
EndEnumeration

If InitSprite() And InitSprite3D()  And InitKeyboard()
    OpenWindow(#Main,5,5,800,600,"")
    OpenWindowedScreen(WindowID(#Main),0,0,800,600,0,0,0)
  
  Repeat
  
  ExamineKeyboard()

  
  ClearScreen(0)
  FlipBuffers()
  Delay(20)
  Until  KeyboardPushed(#PB_Key_Escape) 
  
EndIf
End

A+
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Opengl & compiz PB4.41

Post by Fred »

You have to process the event: While WindowEvent() : Wend
scrat
User
User
Posts: 34
Joined: Tue Nov 25, 2008 5:00 pm

Re: Opengl & compiz PB4.41

Post by scrat »

sorry
mea-culpa
:oops:
Post Reply