mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
add debug code
This commit is contained in:
parent
8f362f3e25
commit
095eaaf898
@ -2,6 +2,7 @@
|
||||
#include <stdio.h>
|
||||
#include "opengl_utils.h"
|
||||
#include "dd.h"
|
||||
#include "debug.h"
|
||||
|
||||
PFNWGLCREATECONTEXTPROC xwglCreateContext;
|
||||
PFNWGLDELETECONTEXTPROC xwglDeleteContext;
|
||||
@ -281,6 +282,14 @@ GLuint oglu_build_program(const GLchar* vert_source, const GLchar* frag_source)
|
||||
glGetShaderiv(frag_shader, GL_COMPILE_STATUS, &is_compiled);
|
||||
if (is_compiled == GL_FALSE)
|
||||
{
|
||||
/*
|
||||
GLint len = 0;
|
||||
glGetShaderiv(frag_shader, GL_INFO_LOG_LENGTH, &len);
|
||||
char* log = calloc(len + 50, 1);
|
||||
glGetShaderInfoLog(frag_shader, len, &len, &log[0]);
|
||||
TRACE("| GL_LOG: %s\n", log);
|
||||
free(log);
|
||||
*/
|
||||
if (glDeleteShader)
|
||||
{
|
||||
glDeleteShader(frag_shader);
|
||||
|
Loading…
x
Reference in New Issue
Block a user