mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-01 17:34:36 +00:00
Don't require GL headers if tracing is disabled.
This commit is contained in:
parent
5f7225ce32
commit
e606c75695
@ -1,10 +1,6 @@
|
|||||||
#ifndef __TRACYOPENGL_HPP__
|
#ifndef __TRACYOPENGL_HPP__
|
||||||
#define __TRACYOPENGL_HPP__
|
#define __TRACYOPENGL_HPP__
|
||||||
|
|
||||||
#if !defined GL_TIMESTAMP && !defined GL_TIMESTAMP_EXT
|
|
||||||
# error "You must include OpenGL 3.2 headers before including TracyOpenGL.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined TRACY_ENABLE || defined __APPLE__
|
#if !defined TRACY_ENABLE || defined __APPLE__
|
||||||
|
|
||||||
#define TracyGpuContext
|
#define TracyGpuContext
|
||||||
@ -35,6 +31,10 @@ public:
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#if !defined GL_TIMESTAMP && !defined GL_TIMESTAMP_EXT
|
||||||
|
# error "You must include OpenGL 3.2 headers before including TracyOpenGL.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user