ab4398e4406c5b68332e45ce906830d1cc4d674e
setActiveTextureUnit methods of osg::State so they return false if the texture unit is outside the range of allowable units for the driver. Currently, the functions would return true even if the units are invalid. This would cause the osg::State to become out of sync with the actual driver state, which can cause some bugs in certain cases. The change I made would verify that the unit passed to setClientActiveTextureUnit is below GL_MAX_TEXTURE_COORDS, and the unit passed to setActiveTextureUnit is below max(GL_MAX_TEXTURE_COORDS,GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS). I modeled this behavior from the OpenGL docs for these commands which can be found here: http://www.opengl.org/sdk/docs/man/xhtml/glClientActiveTexture.xml http://www.opengl.org/sdk/docs/man/xhtml/glActiveTexture.xml "
Welcome to the OpenSceneGraph (OSG).
For up to date information on the project, how to indepth details on how to
compile and run libraries and examples, and see the documentation on the
OpenSceneGraph website.
http://www.openscenegraph.org
For the impatient, read the simplified build notes below.
Robert Osfield.
Project Lead.
7th May 2007.
--
Notes for 1.9.3 release
=======================
OpenThreads/include and src directories has now been merged directly into
the OpenSceneGraph distribution, this means that you don't need to download,
compile or install it, and will be able to remove the external OpenThreads
from your system.
--
How to build the OpenSceneGraph
===============================
The OpenSceneGraph use the CMake build system to generate platform specific
build environment. CMake reads the CMakeLists.txt files that you'll find
throughout the OpenSceneGraph directories, check for installed dependnecies
and then generate the appropriate build system.
If you don't already have CMake installed on your system you can grab it
from http://www.cmake.org, version 2.4.6 or later.
Under unices (i.e. Linux, IRIX, Solaris, Free-BSD, HP-Ux, AIX, OSX) use the
cmake or ccmake commandline utils:
cd OpenSceneGraph
ccmake .
make
sudo make install
Under Windows use the GUI tool CMakeSetup to build your VisualStudio files.
The following page on our wiki dedicated to the CMake build should help
guide you through the process:
http://www.openscenegraph.com/index.php?page=Build.CMake
For further details on compiliation, installation and platform specific information
read "Getting Started" at http://www.openscenegraph.org, under
"Documentation".
Description
Languages
C++
89.7%
C
5.1%
CMake
2.3%
HTML
1.6%
Objective-C++
0.9%
Other
0.2%