freebsd-ports/emulators/mupen64-rice/files/patch-OGLExtCombiner.cpp
Dirk Meyer edee770d1d Rice Daedalus graphics plugin for Mupen64
-
Mupen64 is a highly portable Nintendo 64 emulator. It has been developed
on/for Linux originally but has already been ported successfully to other
operating systems. The program can easily be ported to all operating systems
supported by the SDL library.

In its current state, the emulator is highly compatible and uses a plugin
system. With the correct plugins ("correct" can be computer dependent), it
can achieve nearly perfect graphics and sound in many games.

WWW: http://mupen64.emulation64.com/

PR:		71895
Submitted by:	Travis Poppe
2004-10-12 05:03:32 +00:00

35 lines
1.1 KiB
C++

--- OGLExtCombiner.cpp.orig Thu Aug 28 23:31:44 2003
+++ OGLExtCombiner.cpp Fri Aug 13 21:55:55 2004
@@ -474,6 +474,7 @@
GLenum COGLExtColorCombiner::RGBArgsMap[] =
{
+#ifndef __FreeBSD__
{GL_PRIMARY_COLOR_ARB, }, //MUX_0
{GL_PRIMARY_COLOR_ARB, }, //MUX_1
{GL_PREVIOUS_ARB, }, //MUX_COMBINED,
@@ -490,6 +491,24 @@
{GL_CONSTANT_ARB, }, //MUX_ENV_ALPHA,
{GL_CONSTANT_ARB, }, //MUX_LODFRAC,
{GL_CONSTANT_ARB, }, //MUX_PRIMLODFRAC,
+#else
+ GL_PRIMARY_COLOR_ARB, //MUX_0
+ GL_PRIMARY_COLOR_ARB, //MUX_1
+ GL_PREVIOUS_ARB, //MUX_COMBINED,
+ GL_TEXTURE0_ARB, //MUX_TEXEL0,
+ GL_TEXTURE1_ARB, //MUX_TEXEL1,
+ GL_CONSTANT_ARB, //MUX_PRIM,
+ GL_PRIMARY_COLOR_ARB, //MUX_SHADE,
+ GL_CONSTANT_ARB, //MUX_ENV,
+ GL_PREVIOUS_ARB, //MUX_COMBALPHA,
+ GL_TEXTURE0_ARB, //MUX_T0_ALPHA,
+ GL_TEXTURE1_ARB, //MUX_T1_ALPHA,
+ GL_CONSTANT_ARB, //MUX_PRIM_ALPHA,
+ GL_PRIMARY_COLOR_ARB, //MUX_SHADE_ALPHA,
+ GL_CONSTANT_ARB, //MUX_ENV_ALPHA,
+ GL_CONSTANT_ARB, //MUX_LODFRAC,
+ GL_CONSTANT_ARB, //MUX_PRIMLODFRAC,
+#endif
};