Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created August 2, 2019 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarsoul/29f17ea2c930ae446d16ed4a7b3d82cb to your computer and use it in GitHub Desktop.
Save anarsoul/29f17ea2c930ae446d16ed4a7b3d82cb to your computer and use it in GitHub Desktop.
diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp
index 7b3d358ca96..c84a4fc9cff 100644
--- a/src/compiler/glsl/standalone.cpp
+++ b/src/compiler/glsl/standalone.cpp
@@ -103,6 +103,7 @@ init_gl_program(struct gl_program *prog, bool is_arb_asm)
prog->RefCount = 1;
prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB;
prog->is_arb_asm = is_arb_asm;
+ prog->info.stage = MESA_SHADER_FRAGMENT;
}
static struct gl_program *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment