Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/OpenGL/OpenGLIncludes.h @ 1624:59f95b9ea858
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Nov 2020 17:30:36 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1623:74be0f498b08 | 1624:59f95b9ea858 |
---|---|
58 #if ORTHANC_ENABLE_SDL == 1 | 58 #if ORTHANC_ENABLE_SDL == 1 |
59 # include <SDL_video.h> | 59 # include <SDL_video.h> |
60 | 60 |
61 # if !defined(NDEBUG) // Is build type "debug"? | 61 # if !defined(NDEBUG) // Is build type "debug"? |
62 // glGetError is very expensive! | 62 // glGetError is very expensive! |
63 # include <Logging.h> | |
63 # include <OrthancException.h> | 64 # include <OrthancException.h> |
64 # define ORTHANC_OPENGL_CHECK(name) \ | 65 # define ORTHANC_OPENGL_CHECK(name) \ |
65 if(true) \ | 66 if(true) \ |
66 { \ | 67 { \ |
67 GLenum error = glGetError(); \ | 68 GLenum error = glGetError(); \ |
87 | 88 |
88 #if ORTHANC_ENABLE_WASM == 1 | 89 #if ORTHANC_ENABLE_WASM == 1 |
89 # include <emscripten/html5.h> | 90 # include <emscripten/html5.h> |
90 | 91 |
91 # if !defined(NDEBUG) // Is build type "debug"? | 92 # if !defined(NDEBUG) // Is build type "debug"? |
93 # include <Logging.h> | |
92 # include <OrthancException.h> | 94 # include <OrthancException.h> |
93 # define ORTHANC_OPENGL_CHECK(name) \ | 95 # define ORTHANC_OPENGL_CHECK(name) \ |
94 if(true) \ | 96 if(true) \ |
95 { \ | 97 { \ |
96 GLenum error = glGetError(); \ | 98 GLenum error = glGetError(); \ |