make sure to use OpenGL ES 2.0 when compiling for nvidia chips
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user