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: Munteanu Alexandru
Subject: Re: [glob2-devel] Debian package problems
Date: Wed, 27 Apr 2005 15:02:35 +0200
User-agent: Mutt/1.5.9i

On Mon, Apr 25, 2005 at 05:07:42PM +0200, Stéphane Magnenat wrote:
> > Toolkit : Initialized : Graphic Context created
> > Toolkit : Screen set to 1024x768 at 32 bpp in fullscreen
> > Toolkit : GL_NV_texture_rectangle or GL_EXT_texture_rectangle
> > extension present, optimal texture size will be used
> > glob2: r200_cmdbuf.c:301: r200EmitBlit: Assertion `(src_offset &
> > 1023)
> > == 0' failed.
> > Aborted

> Strange, looks like the r200 code is broken for non-power of two
> texture
> although it pretends to work. Which version of X/DRI do you have ?
I have the debian sarge X version, which is

XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-12.0.1 20050223080930)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.9 i686 [ELF]
Build Date: 23 February 2005

and the 4.3.0.dfsg.1-12.0.1 xlibmesa-dri version (debian sarge).

> I can add
> a flag to disable rectangular textures. You can try to search the
> GL_NV_texture_rectangle string in libgag/src/*.cpp and force the use
> of power
> of two textures and see if it works.


Here is the code where we have GL_NV_texture_rectangle in
GraphicContext.cpp :

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 ?

Btw, sorry for the late reply.

Alex

-- 
Munteanu Alexandru <address@hidden>

   Debian : http://www.debian.org
   Mp3Splt : http://mp3splt.sourceforge.net
   Globulation 2 : http://epfl.ysagoon.com/wiki/index.php

Attachment: signature.asc
Description: Digital signature


reply via email to

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