win_opengl: (WIP)UI for options. Add comments to help find conditionals that put opengl in dev_branch.

This commit is contained in:
ts-korhonen
2021-04-21 01:33:01 +03:00
parent 58d2f6e3ff
commit 3088c6c26f
10 changed files with 97 additions and 41 deletions

View File

@@ -107,13 +107,13 @@ static char* read_file_to_string(const char* path)
* @brief Compile custom shaders into a program.
* @return Shader program identifier.
*/
GLuint load_custom_shaders()
GLuint load_custom_shaders(const char* path)
{
GLint status = GL_FALSE;
int info_log_length;
/* TODO: get path from config */
char* shader = read_file_to_string("shaders/shader.glsl");
char* shader = read_file_to_string(path);
if (shader != NULL)
{