glsl: Move functions into standalone_scaffolding.cpp for later reuse.
authorPaul Berry <stereotype441@gmail.com>
Thu, 7 Jul 2011 21:01:40 +0000 (14:01 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 22 Jul 2011 16:45:11 +0000 (09:45 -0700)
commitf129f618fe8a5397774484f1b7afb42d4be809a0
tree600040852abbc6ba234948b3b9a71f594448984c
parent12c22cab77f35a887d9f6790e0de4a8fa4b3b575
glsl: Move functions into standalone_scaffolding.cpp for later reuse.

This patch moves the following functions from main.cpp (the main cpp
file for the standalone executable that is used to create the built-in
functions) to standalone_scaffolding.cpp, so that they can be re-used
in other standalone executables:

- initialize_context()*
- _mesa_new_shader()
- _mesa_reference_shader()

*initialize_context contained some code that was specific to main.cpp,
so it was split into two functions: initialize_context() (which
remains in main.cpp), and initialize_context_from_defaults() (which is
in standalone_scaffolding.cpp).
src/glsl/Makefile
src/glsl/main.cpp
src/glsl/standalone_scaffolding.cpp [new file with mode: 0644]
src/glsl/standalone_scaffolding.h [new file with mode: 0644]