mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-29 06:03:28 +00:00
49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
|
/* RetroArch - A frontend for libretro.
|
||
|
* copyright (c) 2011-2015 - Daniel De Matteis
|
||
|
*
|
||
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||
|
* of the GNU General Public License as published by the Free Software Found-
|
||
|
* ation, either version 3 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
|
* PURPOSE. See the GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||
|
* If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#include <retro_log.h>
|
||
|
|
||
|
#include "egl_common.h"
|
||
|
|
||
|
void egl_report_error(void)
|
||
|
{
|
||
|
EGLint error = eglGetError();
|
||
|
const char *str = NULL;
|
||
|
switch (error)
|
||
|
{
|
||
|
case EGL_SUCCESS:
|
||
|
str = "EGL_SUCCESS";
|
||
|
break;
|
||
|
|
||
|
case EGL_BAD_DISPLAY:
|
||
|
str = "EGL_BAD_DISPLAY";
|
||
|
break;
|
||
|
|
||
|
case EGL_BAD_SURFACE:
|
||
|
str = "EGL_BAD_SURFACE";
|
||
|
break;
|
||
|
|
||
|
case EGL_BAD_CONTEXT:
|
||
|
str = "EGL_BAD_CONTEXT";
|
||
|
break;
|
||
|
|
||
|
default:
|
||
|
str = "Unknown";
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
RARCH_ERR("[EGL]: #0x%x, %s\n", (unsigned)error, str);
|
||
|
}
|