summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_texgen.c
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2006-02-13 11:23:36 +0000
committerMichal Krol <[email protected]>2006-02-13 11:23:36 +0000
commita2ea606377ed5679dc513eabcf2d398216b47d61 (patch)
treebd50c1ae07d521b8b1aada83973f81faa291f697 /src/mesa/tnl/t_vb_texgen.c
parent2363fff347a064b9584ecb8e26d80d421cafbbbd (diff)
Add ARB_vertex_shader stage just before render stage.
If enabled, all other stages, except render, are disabled.
Diffstat (limited to 'src/mesa/tnl/t_vb_texgen.c')
-rw-r--r--src/mesa/tnl/t_vb_texgen.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_vb_texgen.c b/src/mesa/tnl/t_vb_texgen.c
index 1af8e2ba484..058e7b10b26 100644
--- a/src/mesa/tnl/t_vb_texgen.c
+++ b/src/mesa/tnl/t_vb_texgen.c
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 6.1
+ * Version: 6.5
*
- * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -488,6 +488,9 @@ static GLboolean run_texgen_stage( GLcontext *ctx,
struct texgen_stage_data *store = TEXGEN_STAGE_DATA(stage);
GLuint i;
+ if (ctx->ShaderObjects.CurrentProgram != NULL)
+ return GL_TRUE;
+
if (!ctx->Texture._TexGenEnabled || ctx->VertexProgram._Enabled)
return GL_TRUE;
@@ -513,6 +516,9 @@ static void validate_texgen_stage( GLcontext *ctx,
struct texgen_stage_data *store = TEXGEN_STAGE_DATA(stage);
GLuint i;
+ if (ctx->ShaderObjects.CurrentProgram != NULL)
+ return;
+
if (!ctx->Texture._TexGenEnabled || ctx->VertexProgram._Enabled)
return;