(PS3) Set NO_GL_FF_VERTEX for PSGL-based builds

This commit is contained in:
TwinAphex51224 2012-09-25 04:07:36 +02:00
parent e42f515e11
commit accbb57e10
2 changed files with 1 additions and 15 deletions

View File

@ -262,7 +262,7 @@ extern PFNGLACTIVETEXTUREPROC pglActiveTexture;
#define NO_GL_READ_VIEWPORT
#endif
#if defined(HAVE_OPENGL_MODERN) || defined(HAVE_OPENGLES2)
#if defined(HAVE_OPENGL_MODERN) || defined(HAVE_OPENGLES2) || defined(HAVE_PSGL)
#define NO_GL_FF_VERTEX
#endif

View File

@ -102,12 +102,10 @@ struct cg_program
CGprogram vprg;
CGprogram fprg;
#ifndef HAVE_PSGL
CGparameter tex;
CGparameter lut_tex;
CGparameter color;
CGparameter vertex;
#endif
CGparameter vid_size_f;
CGparameter tex_size_f;
@ -168,13 +166,6 @@ bool gl_cg_set_mvp(const math_matrix *mat)
return false;
}
#ifdef HAVE_PSGL
bool gl_cg_set_coords(const struct gl_coords *coords)
{
(void)coords;
return false;
}
#else
#define SET_COORD(name, coords_name, len) do { \
if (prg[active_index].name) \
{ \
@ -196,7 +187,6 @@ bool gl_cg_set_coords(const struct gl_coords *coords)
return true;
}
#endif
#define set_param_2f(param, x, y) \
if (param) cgGLSetParameter2f(param, x, y)
@ -1056,9 +1046,6 @@ end:
static void set_program_base_attrib(unsigned i)
{
#ifdef HAVE_PSGL
(void)i;
#else
CGparameter param = cgGetFirstParameter(prg[i].vprg, CG_PROGRAM);
for (; param; param = cgGetNextParameter(param))
{
@ -1080,7 +1067,6 @@ static void set_program_base_attrib(unsigned i)
else if (strcmp(semantic, "TEXCOORD1") == 0)
prg[i].lut_tex = param;
}
#endif
}
static void set_program_attributes(unsigned i)