make sure to use OpenGL ES 2.0 when compiling for nvidia chips

This commit is contained in:
Konstantin Käfer
2014-06-17 05:52:39 -07:00
parent 68c621b2a6
commit f51fd9be58
2 changed files with 7 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ namespace platform {
double elapsed() { return glfwGetTime(); }
#ifndef GL_ES_VERSION_2_0
void show_debug_image(std::string name, const char *data, size_t width, size_t height) {
glfwInit();
@@ -285,6 +286,7 @@ void show_color_debug_image(std::string name, const char *data, size_t logical_w
glfwMakeContextCurrent(current_window);
}
#endif
void notify_map_change() {
// no-op

View File

@@ -2,7 +2,12 @@
#define LLMR_COMMON_GLFW_VIEW
#include <llmr/llmr.hpp>
#ifdef NVIDIA
#define GLFW_INCLUDE_ES2
#endif
#include <GLFW/glfw3.h>
#include <uv.h>
class GLFWView : public llmr::View {