ppsspp/Common/GPU/OpenGL/GLDebugLog.h
Henrik Rydgård 0e3a84b4a8 Move most GPU things to Common.
It works after the move, on Windows and Android at least.

Deletes the D3DX9 shader compiler loader, which was not used.
2020-10-04 23:39:02 +02:00

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);