workaround for GLEW_AMD_pinned_memory and older glew versions

This commit is contained in:
degasus 2013-03-04 12:40:23 +01:00
parent e4f8d7b4c8
commit efcfc5c014
2 changed files with 6 additions and 4 deletions

View File

@ -20,10 +20,6 @@
#include "StreamBuffer.h"
#include "MemoryUtil.h"
#ifndef GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD
#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
#endif
namespace OGL
{

View File

@ -23,6 +23,12 @@
#include "FramebufferManager.h"
#include "GLUtil.h"
// glew < 1.8 doesn't support pinned memory
#ifndef GLEW_AMD_pinned_memory
#define GLEW_AMD_pinned_memory glewIsSupported("GL_AMD_pinned_memory")
#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
#endif
namespace OGL
{
enum StreamType {