Found something ... unsettling.
This commit is contained in:
parent
b0d1a98cd1
commit
3ee19ec75f
|
@ -24,6 +24,8 @@
|
||||||
#include "conf/config_file.h"
|
#include "conf/config_file.h"
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
|
|
||||||
|
//#define SSNES_CG_DEBUG
|
||||||
|
|
||||||
// Used when we call deactivate() since just unbinding the program didn't seem to work... :(
|
// Used when we call deactivate() since just unbinding the program didn't seem to work... :(
|
||||||
static const char* stock_cg_program =
|
static const char* stock_cg_program =
|
||||||
"void main_vertex"
|
"void main_vertex"
|
||||||
|
@ -296,6 +298,7 @@ static bool load_textures(const char *dir_path, config_file_t *conf)
|
||||||
strlcpy(lut_textures_uniform[lut_textures_num], id, sizeof(lut_textures_uniform[lut_textures_num]));
|
strlcpy(lut_textures_uniform[lut_textures_num], id, sizeof(lut_textures_uniform[lut_textures_num]));
|
||||||
|
|
||||||
glGenTextures(1, &lut_textures[lut_textures_num]);
|
glGenTextures(1, &lut_textures[lut_textures_num]);
|
||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, lut_textures[lut_textures_num]);
|
glBindTexture(GL_TEXTURE_2D, lut_textures[lut_textures_num]);
|
||||||
|
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
|
||||||
|
@ -558,6 +561,10 @@ bool gl_cg_init(const char *path)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////
|
||||||
|
// cgGLSetManageTextureParameters(cgCtx, CG_TRUE);
|
||||||
|
///
|
||||||
|
|
||||||
#ifdef SSNES_CG_DEBUG
|
#ifdef SSNES_CG_DEBUG
|
||||||
cgGLSetDebugMode(CG_TRUE);
|
cgGLSetDebugMode(CG_TRUE);
|
||||||
cgSetErrorHandler(cg_error_handler, NULL);
|
cgSetErrorHandler(cg_error_handler, NULL);
|
||||||
|
|
Loading…
Reference in New Issue