Fixup for gawan rename
inten/opencolorio and *.cc were ignored.
Build error introduced on b4d053efc7
.
This commit is contained in:
@@ -95,7 +95,7 @@ typedef struct OCIO_GLSLDrawState {
|
|||||||
GLuint ocio_shader;
|
GLuint ocio_shader;
|
||||||
GLuint vert_shader;
|
GLuint vert_shader;
|
||||||
GLuint program;
|
GLuint program;
|
||||||
ShaderInterface *shader_interface;
|
Gwn_ShaderInterface *shader_interface;
|
||||||
|
|
||||||
/* Previous OpenGL state. */
|
/* Previous OpenGL state. */
|
||||||
GLint last_texture, last_texture_unit;
|
GLint last_texture, last_texture_unit;
|
||||||
@@ -397,7 +397,7 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (state->program) {
|
if (state->program) {
|
||||||
state->shader_interface = ShaderInterface_create(state->program);
|
state->shader_interface = GWN_shaderinterface_create(state->program);
|
||||||
}
|
}
|
||||||
|
|
||||||
state->curve_mapping_used = use_curve_mapping;
|
state->curve_mapping_used = use_curve_mapping;
|
||||||
@@ -424,9 +424,9 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc
|
|||||||
*
|
*
|
||||||
* TODO(sergey): Look into some nicer solution.
|
* TODO(sergey): Look into some nicer solution.
|
||||||
*/
|
*/
|
||||||
VertexFormat *format = immVertexFormat();
|
Gwn_VertFormat *format = immVertexFormat();
|
||||||
VertexFormat_add_attrib(format, "pos", COMP_F32, 2, KEEP_FLOAT);
|
GWN_vertformat_attr_add(format, "pos", GWN_COMP_F32, 2, GWN_FETCH_FLOAT);
|
||||||
VertexFormat_add_attrib(format, "texCoord", COMP_F32, 2, KEEP_FLOAT);
|
GWN_vertformat_attr_add(format, "texCoord", GWN_COMP_F32, 2, GWN_FETCH_FLOAT);
|
||||||
immBindProgram(state->program, state->shader_interface);
|
immBindProgram(state->program, state->shader_interface);
|
||||||
|
|
||||||
immUniform1i("image_texture", 0);
|
immUniform1i("image_texture", 0);
|
||||||
@@ -497,7 +497,7 @@ void OCIOImpl::freeGLState(struct OCIO_GLSLDrawState *state)
|
|||||||
glDeleteProgram(state->program);
|
glDeleteProgram(state->program);
|
||||||
|
|
||||||
if (state->shader_interface)
|
if (state->shader_interface)
|
||||||
ShaderInterface_discard(state->shader_interface);
|
GWN_shaderinterface_discard(state->shader_interface);
|
||||||
|
|
||||||
if (state->ocio_shader)
|
if (state->ocio_shader)
|
||||||
glDeleteShader(state->ocio_shader);
|
glDeleteShader(state->ocio_shader);
|
||||||
|
Reference in New Issue
Block a user