Results 1 to 2 of 2

Thread: Opengl mode problem

  1. #1

    Default Opengl mode problem

    I found a problem,
    In the OpenGL mode when the sprite image size more than a certain size, it will throw exception in some machines.
    E.g. I have a 9600*300 PNG images for sprite , on some the computer with integrated graphics will cause GL_INVALID_VALUE errors when flip.
    when i changed png size to 4800 * 600 , Although not all computer, but most of them can work properly.
    Last edited by kyelin; 07-17-2014 at 10:12 AM.

  2. #2
    ClanLib Developer
    Join Date
    May 2007


    Sprite it too large.

    4096x4096 is probably safe to use these days. I would not use any larger for width or height.

    You can use GL_MAX_TEXTURE_SIZE​ to determine the maximum texture size

    	clan::GLint max = 0;
    	clan::glGetIntegerv(clan::GL_MAX_TEXTURE_SIZE​ , &max);

Similar Threads

  1. See through mode/Music Mode - (World Lock Feature)
    By Prince Ax in forum Suggestion Box
    Replies: 0
    Last Post: 06-26-2014, 12:44 PM
  2. Peaceful mode or pvp mode
    By NightMareX in forum Suggestion Box
    Replies: 5
    Last Post: 10-02-2013, 01:27 AM
  3. Replies: 3
    Last Post: 10-18-2012, 06:32 PM
  4. OpenGL ES?
    By NovaLaw in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 10-19-2009, 07:20 PM
    By babyvegas in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 07-30-2008, 10:07 AM



Posting Permissions

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