From Wang Rui, Compile fixes

This commit is contained in:
Robert Osfield 2010-11-30 08:12:06 +00:00
parent e5a9eaa711
commit 60457486b0
2 changed files with 16 additions and 0 deletions

View File

@ -14,10 +14,15 @@
#ifndef OSG_BUFFERINDEXBINDING #ifndef OSG_BUFFERINDEXBINDING
#define OSG_BUFFERINDEXBINDING 1 #define OSG_BUFFERINDEXBINDING 1
#include <osg/Export> #include <osg/Export>
#include <osg/BufferObject> #include <osg/BufferObject>
#include <osg/StateAttribute> #include <osg/StateAttribute>
#ifndef GL_TRANSFORM_FEEDBACK_BUFFER
#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
#endif
namespace osg { namespace osg {
class State; class State;

View File

@ -73,6 +73,17 @@
#endif #endif
#ifndef GL_VERSION_1_5 #ifndef GL_VERSION_1_5
#if defined(_WIN64)
typedef __int64 GLintptr;
typedef __int64 GLsizeiptr;
#elif defined(__ia64__) || defined(__x86_64__)
typedef long int GLintptr;
typedef long int GLsizeiptr;
#else
typedef int GLintptr;
typedef int GLsizeiptr;
#endif
#define GL_STREAM_DRAW 0x88E0 #define GL_STREAM_DRAW 0x88E0
#define GL_STREAM_READ 0x88E1 #define GL_STREAM_READ 0x88E1
#define GL_STREAM_COPY 0x88E2 #define GL_STREAM_COPY 0x88E2