glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Debian package problems


From: Martin Voelkle
Subject: Re: [glob2-devel] Debian package problems
Date: Wed, 27 Apr 2005 15:10:11 +0200
User-agent: KMail/1.7.1

> void checkExtensions(void)
>      {
>       const char *glExtensions = (const char
>       *)glGetString(GL_EXTENSIONS);
>  isTextureRectangle = (strstr(glExtensions,
>    "GL_NV_texture_rectangle") != NULL);
>  isTextureRectangle = isTextureRectangle ||
>    (strstr(glExtensions, "GL_EXT_texture_rectangle") != NULL);
>     if (isTextureRectangle)
>      std::cout << "Toolkit : GL_NV_texture_rectangle or
>      GL_EXT_texture_rectangle extension present, optimal texture size
>      will
> +be used" << std::endl;
>     else
>      std::cout << "Toolkit : GL_NV_texture_rectangle or
>      GL_EXT_texture_rectangle extension not present, power of two
>      texture
> +will be used" << std::endl;
>                                                                            
>                                            }
>
> What I must change to force the use of power of two texture ?

I guess: just replace the function body with
isTextureRectangle = false;

Martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]