Results 1 to 2 of 2

Thread: When drawing text, crash while clearing the screen!?

  1. #1

    Default When drawing text, crash while clearing the screen!?

    This is a strange one. I wish to draw text to the screen, I have my font resource all set up and everything, but when I try to clear the screen before drawing, it crashes at CL_GLStateChecker::add_clear, of all places. What's going on?

    By the way, the Font example runs OK. Do I have to do my drawing in the same scope in which I SetupGL?
    Last edited by Iori Branford; 01-05-2007 at 10:47 PM.

  2. #2

    Default

    Well, it turns out that constructing a SetupGL object like in the examples wasn't such a good idea for the more complicated architecture of my program (a Mike McShaffry-esque "Application/Logic/View" type of thing). Using init() and deinit() solved it.

    I just wonder why this wasn't caught before I added my text drawing code.
    Last edited by Iori Branford; 01-05-2007 at 11:19 PM.

Similar Threads

  1. Drawing/displaying problem
    By shade37337 in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 10-21-2006, 05:11 PM
  2. Crash when destroying a DisplayWindow
    By Wuntvor in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 09-19-2006, 07:31 PM
  3. Logitech Dual Action GamePad crash.
    By Otto (Strange) Halmén in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 09-15-2006, 11:02 AM
  4. New Day Text
    By File Sponge in forum Funeral Quest
    Replies: 2
    Last Post: 08-29-2006, 05:30 AM
  5. New Day text
    By File Sponge in forum Funeral Quest
    Replies: 0
    Last Post: 10-16-2005, 11:13 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •