workaround for GLEW_AMD_pinned_memory and older glew versions
This commit is contained in:
parent
e4f8d7b4c8
commit
efcfc5c014
|
@ -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
|
||||
{
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue