mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Update opengl.hpp
This commit is contained in:
parent
e5c09a092d
commit
793ab8b884
1 changed files with 3 additions and 1 deletions
2
third_party/opengl/opengl.hpp
vendored
2
third_party/opengl/opengl.hpp
vendored
|
@ -31,6 +31,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include <glad/gl.h>
|
#include <glad/gl.h>
|
||||||
|
#include <android/log.h>
|
||||||
|
|
||||||
// Check if we have C++20. If yes, we can add C++20 std::span support
|
// Check if we have C++20. If yes, we can add C++20 std::span support
|
||||||
#ifdef _MSVC_LANG // MSVC does not properly define __cplusplus without a compiler flag...
|
#ifdef _MSVC_LANG // MSVC does not properly define __cplusplus without a compiler flag...
|
||||||
|
@ -413,6 +414,7 @@ namespace OpenGL {
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
glGetProgramInfoLog(m_handle, 4096, nullptr, buf);
|
glGetProgramInfoLog(m_handle, 4096, nullptr, buf);
|
||||||
fprintf(stderr, "Failed to link program\nError: %s\n", buf);
|
fprintf(stderr, "Failed to link program\nError: %s\n", buf);
|
||||||
|
__android_log_print(ANDROID_LOG_ERROR, "Panda3DS", "Failed to link program\nError: %s", buf);
|
||||||
glDeleteProgram(m_handle);
|
glDeleteProgram(m_handle);
|
||||||
|
|
||||||
m_handle = 0;
|
m_handle = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue