diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-07-29 03:53:27 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-07-29 03:53:27 +0000 |
| commit | dd4c0b039bcd38459cd5545d087c2b047198067b (patch) | |
| tree | 387f88e4100d3bb0d437b4dcb5b53681c39a3e60 | |
| parent | 8d4373b70d74ff5903c13780f397bdbaa5ad4991 (diff) | |
| download | pcsxr-dd4c0b039bcd38459cd5545d087c2b047198067b.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@55267 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | AUTHORS | 1 | ||||
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | plugins/peopsxgl/draw.c | 9 |
3 files changed, 6 insertions, 7 deletions
@@ -27,6 +27,7 @@ PCSX-Reloaded Authors/Contributors: avlex (Help on xcode project) maggix (Snow Leopard compile fix) NeToU (Bugfix) Peter Collingbourne (Various core/psxbios fixes) + siveritas (Bugfix) shalma (GTE Divider, various core fixes) Tristin Celestin (PulseAudio support) Wei Mingzhi (Maintainer, input plugin, iso/cheat support, misc stuff) @@ -25,6 +25,9 @@ July 29, 2010 Wei Mingzhi <whistler_wmz@users.sf.net> disc is really a PSX CD or not.
* macosx/Pcsx.xcodeproj/project.pbxproj: Added DFInput to project.
* macosx/plugins/HIDInput: Removed.
+ * plugins/peopsxgl/draw.c: Replaced global symbols with glXGetProcAddress
+ call (courtesy of siveritas).
+ * AUTHORS: Updated info.
July 25, 2010 Wei Mingzhi <whistler_wmz@users.sf.net>
diff --git a/plugins/peopsxgl/draw.c b/plugins/peopsxgl/draw.c index d0b70748..33381e59 100644 --- a/plugins/peopsxgl/draw.c +++ b/plugins/peopsxgl/draw.c @@ -74,11 +74,6 @@ #endif
////////////////////////////////////////////////////////////////////////////////////
-// draw globals
-
-void glBlendEquationEXT(GLenum mode);
-void glColorTableEXT(GLenum target, GLenum internalFormat, GLsizei width, GLenum format,GLenum type, const GLvoid *data);
-
// draw globals; most will be initialized again later (by config or checks)
BOOL bIsFirstFrame=TRUE;
@@ -175,7 +170,7 @@ void GetExtInfos(void) {
iUsePalTextures=1; // -> wow, supported, get func pointer
- glColorTableEXTEx=(PFNGLCOLORTABLEEXT)glColorTableEXT;
+ glColorTableEXTEx=(PFNGLCOLORTABLEEXT)glXGetProcAddress("glColorTableEXT");
if(glColorTableEXTEx==NULL) iUsePalTextures=0; // -> ha, cheater... no func, no support
}
@@ -201,7 +196,7 @@ void SetExtGLFuncs(void) strstr((char *)glGetString(GL_EXTENSIONS), // and blend_subtract available?
"GL_EXT_blend_subtract"))
{ // -> get ogl blend function pointer
- glBlendEquationEXTEx=(PFNGLBLENDEQU)glBlendEquationEXT;
+ glBlendEquationEXTEx=(PFNGLBLENDEQU)glXGetProcAddress("glBlendEquationEXT");
}
else // no subtract blending?
{
|
