Add comment about vertex format created in OCIO
This commit is contained in:
parent
6aa7843de7
commit
883c62d5d3
|
@ -416,7 +416,14 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc
|
|||
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
|
||||
/* IMM needs vertex format even if we don't draw with it */
|
||||
/* IMM needs vertex format even if we don't draw with it.
|
||||
*
|
||||
* NOTE: The only reason why it's here is because of Cycles viewport.
|
||||
* All other areas are managing their own vertex formats.
|
||||
* Doing it here is probably harmless, but kind of stupid.
|
||||
*
|
||||
* TODO(sergey): Look into some nicer solution.
|
||||
*/
|
||||
VertexFormat *format = immVertexFormat();
|
||||
VertexFormat_add_attrib(format, "pos", COMP_F32, 2, KEEP_FLOAT);
|
||||
VertexFormat_add_attrib(format, "texCoord", COMP_F32, 2, KEEP_FLOAT);
|
||||
|
|
Loading…
Reference in New Issue