mupen64plus-oldsvn/rice_video/OGLError.cpp
John Chadwick 882e316288 More things:
- Committed missing files
- Added Save/Load/Switch State messages
- Added Support for TXT_OBJECT. (Untested!) 
- More work on the initial support


BTW, This patch does not unify the def of TXT_OBJECT. Why? Because GFX_INFO and the function prototypes are defined twice in the exact same manor - All I can recieve from that is that gfx.h needs to stay different than the original spec file, and so solving the issue of having two defs of TXT_OBJECT is outside the scope of this branch. It's not my decision, but I think it's important to note this anyways.
2008-04-26 19:13:19 +00:00

38 lines
1 KiB
C++

/*
Copyright (C) 2008 nmn
This program 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 Foundation; either version 2
of the License, or (at your option) any later version.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdlib.h>
#include <stdio.h>
bool OGLCheckErrors()
{
if(glGetError())
{
fprintf(stderr,"OpenGL Error: %s\n", gluErrorString(glGetError()));
return false;
}
return true;
}
void SegFault()
{
int *aBadPointer=0x00000000;
*aBadPointer=0;
}