ab4398e440
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 " |
||
---|---|---|
applications | ||
CMakeModules | ||
doc | ||
examples | ||
include | ||
src | ||
VisualStudio | ||
Xcode | ||
AUTHORS.txt | ||
ChangeLog | ||
CMakeLists.txt | ||
genwrapper.conf | ||
LICENSE.txt | ||
NEWS.txt | ||
README.txt | ||
runexamples.bat |
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".