mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
0e3a84b4a8
It works after the move, on Windows and Android at least. Deletes the D3DX9 shader compiler loader, which was not used.
23 lines
492 B
C++
23 lines
492 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <cstdint>
|
|
|
|
// Utility to be able to liberally sprinkle GL error checks around your code
|
|
// and easily disable them all in release builds - just undefine DEBUG_OPENGL.
|
|
|
|
// #define DEBUG_OPENGL
|
|
|
|
#if defined(DEBUG_OPENGL)
|
|
|
|
bool CheckGLError(const char *file, int line);
|
|
#define CHECK_GL_ERROR_IF_DEBUG() if (!CheckGLError(__FILE__, __LINE__)) __debugbreak();
|
|
|
|
#else
|
|
|
|
#define CHECK_GL_ERROR_IF_DEBUG()
|
|
|
|
#endif
|
|
|
|
std::string GLEnumToString(uint16_t value);
|