Hi,

A friend sent me the following, which works for him.  I tried it, and it
worked for me too.  Now I also know how to get my code to compile.  I
don't use the BSP plugin in my application.

-John

-----------------------------
John,

        I am running identical system/gcc versions.

        I looked into it closer and remembered that I did have to make this
1 fix to get it to compile from cvs.  I had forgotten that I made that change.

        The particular build problem you see can be fixed with an explicit
cast from GLuint* to unsigned int*.  I also commented out another
line and put in an assert statement just in case that line ever got
called I would know that it was me.

================================================================
diff -r1.2 ReaderWriterQ3BSP.cpp
249a250
 >         /*
251a253,254
 >       */
 >       assert( false );
637c640
<         m_rowIndexPointers[row]=&m_indices[row*2*(m_tesselation+1)];
---
 >         m_rowIndexPointers[row]=(unsigned int*)&m_indices[row*2*
(m_tesselation+1)];
=================================================================




On Mon, 5 Jun 2006, Robert Osfield wrote:

> Hi John,
>
> The BSP plugin is new so hasn't tweaked for OSX OpenGL problems yet.
> Apple for some inexplicable reason have changed the type of GLenum
> from what it is on all other OS's, so if users assume this type then
> unintentional casting can cause problems.
>
> I don't believe its a gcc 4.0 compile problem as I did the porting to
> Linux for the BSP plugin using gcc 4.0.2.
>
> Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to