X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fgpu-gles%2FgpuStdafx.h;h=69050b30aca2d0759d43c12ac1ff897bb2bc3f32;hp=fc7ee3d5e85fb5bd18e8c81e586d44507e81ee21;hb=9f58cabba9806e2c365c64f7a3701efa6282aa72;hpb=ce879073e4f228deec8bec5db8a2ff640636c88f diff --git a/plugins/gpu-gles/gpuStdafx.h b/plugins/gpu-gles/gpuStdafx.h index fc7ee3d5..69050b30 100644 --- a/plugins/gpu-gles/gpuStdafx.h +++ b/plugins/gpu-gles/gpuStdafx.h @@ -31,7 +31,9 @@ extern "C" { #endif - +#ifndef _GPU_API_ +#define _GPU_API_ 1 +#endif @@ -64,15 +66,9 @@ extern "C" { #ifdef SOFT_LINKAGE #pragma softfp_linkage #endif -#ifdef MAEMO_CHANGES - #include - #include - #include - #include -#else - #include // for opengl es types - #include -#endif +#include // for opengl es types +//#include +#include #ifdef SOFT_LINKAGE #pragma no_softfp_linkage #endif @@ -92,6 +88,18 @@ extern "C" { #endif #endif +#if 0 +#define glError() { \ + GLenum err = glGetError(); \ + while (err != GL_NO_ERROR) { \ + printf("glError: %d caught at %s:%u\n", err, __FILE__, __LINE__); \ + err = glGetError(); \ + } \ +} +#else +#define glError() +#endif + #ifdef __cplusplus } #endif