glsl/standalone: Use API_OPENGL_CORE if the GLSL version is >= 1.40
[mesa.git] / src / compiler / glsl / standalone_scaffolding.h
index a19eae28de62cd700140e0f6a485fa2eab3ff447..b56dd3e8707bf58c15b73ee9e19335b450f42e83 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <assert.h>
 #include "main/mtypes.h"
+#include "program/prog_statevars.h"
 
 extern "C" void
 _mesa_warning(struct gl_context *ctx, const char *fmtString, ... );
@@ -61,6 +62,13 @@ extern "C" void
 _mesa_shader_debug(struct gl_context *ctx, GLenum type, GLuint *id,
                    const char *msg);
 
+extern "C" GLbitfield
+_mesa_program_state_flags(const gl_state_index state[STATE_LENGTH]);
+
+
+extern "C" char *
+_mesa_program_state_string(const gl_state_index state[STATE_LENGTH]);
+
 static inline gl_shader_stage
 _mesa_shader_enum_to_shader_stage(GLenum v)
 {