mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-16 22:35:08 +01:00
add debug code
This commit is contained in:
parent
8f362f3e25
commit
095eaaf898
@ -2,6 +2,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "opengl_utils.h"
|
#include "opengl_utils.h"
|
||||||
#include "dd.h"
|
#include "dd.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
PFNWGLCREATECONTEXTPROC xwglCreateContext;
|
PFNWGLCREATECONTEXTPROC xwglCreateContext;
|
||||||
PFNWGLDELETECONTEXTPROC xwglDeleteContext;
|
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);
|
glGetShaderiv(frag_shader, GL_COMPILE_STATUS, &is_compiled);
|
||||||
if (is_compiled == GL_FALSE)
|
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)
|
if (glDeleteShader)
|
||||||
{
|
{
|
||||||
glDeleteShader(frag_shader);
|
glDeleteShader(frag_shader);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user