- Disable un-used mesa features (ATI/NV programs) for a leaner build
- Print a fixme instead of asserting in software version of wglGetProcAddress
svn path=/trunk/; revision=60300
api_validate.c
accum.c
arbprogram.c
api_validate.c
accum.c
arbprogram.c
attrib.c
arrayobj.c
blend.c
attrib.c
arrayobj.c
blend.c
mipmap.c
mm.c
multisample.c
mipmap.c
mm.c
multisample.c
+#if FEATURE_NV_vertex_program
else if ((target == GL_VERTEX_PROGRAM_ARB
|| target == GL_VERTEX_STATE_PROGRAM_NV)
&& ctx->Extensions.NV_vertex_program) {
else if ((target == GL_VERTEX_PROGRAM_ARB
|| target == GL_VERTEX_STATE_PROGRAM_NV)
&& ctx->Extensions.NV_vertex_program) {
else if (target == GL_FRAGMENT_PROGRAM_ARB
&& ctx->Extensions.ARB_fragment_program) {
struct gl_fragment_program *prog = ctx->FragmentProgram.Current;
else if (target == GL_FRAGMENT_PROGRAM_ARB
&& ctx->Extensions.ARB_fragment_program) {
struct gl_fragment_program *prog = ctx->FragmentProgram.Current;
+#if FEATURE_NV_fragment_program
else if (target == GL_FRAGMENT_PROGRAM_NV
&& ctx->Extensions.NV_fragment_program) {
struct gl_fragment_program *prog = ctx->FragmentProgram.Current;
else if (target == GL_FRAGMENT_PROGRAM_NV
&& ctx->Extensions.NV_fragment_program) {
struct gl_fragment_program *prog = ctx->FragmentProgram.Current;
else {
_mesa_error(ctx, GL_INVALID_ENUM, "glProgramStringARB(target)");
return;
else {
_mesa_error(ctx, GL_INVALID_ENUM, "glProgramStringARB(target)");
return;
/*
* GL_NV_fragment_program
*/
/*
* GL_NV_fragment_program
*/
-#if FEATURE_NV_fragment_program
+#if FEATURE_NV_fragment_program || FEATURE_ARB_fragment_program
static void GLAPIENTRY
save_ProgramLocalParameter4fARB(GLenum target, GLuint index,
GLfloat x, GLfloat y, GLfloat z, GLfloat w)
static void GLAPIENTRY
save_ProgramLocalParameter4fARB(GLenum target, GLuint index,
GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+#if FEATURE_NV_fragment_program
static void GLAPIENTRY
save_ProgramNamedParameter4fNV(GLuint id, GLsizei len, const GLubyte * name,
GLfloat x, GLfloat y, GLfloat z, GLfloat w)
static void GLAPIENTRY
save_ProgramNamedParameter4fNV(GLuint id, GLsizei len, const GLubyte * name,
GLfloat x, GLfloat y, GLfloat z, GLfloat w)
static void GLAPIENTRY
save_ProgramNamedParameter4fvNV(GLuint id, GLsizei len, const GLubyte * name,
const float v[])
static void GLAPIENTRY
save_ProgramNamedParameter4fvNV(GLuint id, GLsizei len, const GLubyte * name,
const float v[])
(GLfloat) v[1], (GLfloat) v[2],
(GLfloat) v[3]);
}
(GLfloat) v[1], (GLfloat) v[2],
(GLfloat) v[3]);
}
#endif /* FEATURE_NV_fragment_program */
#endif /* FEATURE_NV_fragment_program */
SET_GetVertexAttribdvARB(table, _mesa_GetVertexAttribdvARB);
SET_GetVertexAttribfvARB(table, _mesa_GetVertexAttribfvARB);
SET_GetVertexAttribivARB(table, _mesa_GetVertexAttribivARB);
SET_GetVertexAttribdvARB(table, _mesa_GetVertexAttribdvARB);
SET_GetVertexAttribfvARB(table, _mesa_GetVertexAttribfvARB);
SET_GetVertexAttribivARB(table, _mesa_GetVertexAttribivARB);
+#if FEATURE_NV_vertex_program
SET_GetVertexAttribPointervNV(table, _mesa_GetVertexAttribPointervNV);
SET_GetVertexAttribPointervNV(table, _mesa_GetVertexAttribPointervNV);
SET_ProgramEnvParameter4dARB(table, save_ProgramEnvParameter4dARB);
SET_ProgramEnvParameter4dvARB(table, save_ProgramEnvParameter4dvARB);
SET_ProgramEnvParameter4fARB(table, save_ProgramEnvParameter4fARB);
SET_ProgramEnvParameter4dARB(table, save_ProgramEnvParameter4dARB);
SET_ProgramEnvParameter4dvARB(table, save_ProgramEnvParameter4dvARB);
SET_ProgramEnvParameter4fARB(table, save_ProgramEnvParameter4fARB);
#define FEATURE_EXT_transform_feedback FEATURE_GL
#define FEATURE_APPLE_object_purgeable FEATURE_GL
#define FEATURE_EXT_transform_feedback FEATURE_GL
#define FEATURE_APPLE_object_purgeable FEATURE_GL
-#define FEATURE_ATI_fragment_shader FEATURE_GL
+#define FEATURE_ATI_fragment_shader 0
#define FEATURE_NV_fence FEATURE_GL
#define FEATURE_NV_fence FEATURE_GL
-#define FEATURE_NV_fragment_program FEATURE_GL
-#define FEATURE_NV_vertex_program FEATURE_GL
+#define FEATURE_NV_fragment_program 0
+#define FEATURE_NV_vertex_program 0
#define FEATURE_OES_EGL_image 1
#define FEATURE_OES_draw_texture FEATURE_ES1
#define FEATURE_OES_EGL_image 1
#define FEATURE_OES_draw_texture FEATURE_ES1
arbprogparse.c
hash_table.c
ir_to_mesa.cpp
arbprogparse.c
hash_table.c
ir_to_mesa.cpp
- nvfragparse.c
- nvvertparse.c
+ # nvfragparse.c
+ # nvvertparse.c
program.c
program_parse_extra.c
prog_cache.c
program.c
program_parse_extra.c
prog_cache.c
(void) ctx;
if(name == GL_RENDERER)
return (const GLubyte *) "ReactOS Software Implementation";
(void) ctx;
if(name == GL_RENDERER)
return (const GLubyte *) "ReactOS Software Implementation";
+ /* Don't claim to support the fancy extensions that mesa supports, they will be slow anyway */
+ if(name == GL_EXTENSIONS)
+ return (const GLubyte *)"";
PROC sw_GetProcAddress(LPCSTR name)
{
/* We don't support any extensions */
PROC sw_GetProcAddress(LPCSTR name)
{
/* We don't support any extensions */
+ FIXME("Asking for proc address %s, returning NULL.\n", name);