mirror of
https://github.com/mupen64plus/mupen64plus-oldsvn.git
synced 2025-04-02 10:52:35 -04:00
- 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.
38 lines
1 KiB
C++
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;
|
|
}
|