Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-05-19 00:45:31 +0300
committerMike Erwin <significant.bit@gmail.com>2017-05-19 01:30:24 +0300
commit77f8d631b1f6479b6e5b3b99ecb3611fca519444 (patch)
treeabb3694c9c0b82a622616e408673164182c6fff2 /intern/opensubdiv
parent2e56e1415a0db11c5bf93cd517ff12bf3df43a5a (diff)
OpenSubdiv: insert TODO notes for OpenGL
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r--intern/opensubdiv/opensubdiv_gpu_capi.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_gpu_capi.cc b/intern/opensubdiv/opensubdiv_gpu_capi.cc
index 8b48b526ccc..681fc319dce 100644
--- a/intern/opensubdiv/opensubdiv_gpu_capi.cc
+++ b/intern/opensubdiv/opensubdiv_gpu_capi.cc
@@ -296,6 +296,7 @@ GLuint linkProgram(const char *version, const char *define)
glGetUniformBlockIndex(program, "Lighting"),
0);
+ /* TODO: use glUseProgram, glUniform */
glProgramUniform1i(program,
glGetUniformLocation(program, "texture_buffer"),
0); /* GL_TEXTURE0 */
@@ -357,6 +358,7 @@ void bindProgram(OpenSubdiv_GLMesh *gl_mesh, int program)
}
#else
{
+ /* TODO: stop using glGetMaterial */
float color[4];
glGetMaterialfv(GL_FRONT, GL_DIFFUSE, color);
glUniform4fv(glGetUniformLocation(program, "diffuse"), 1, color);
@@ -533,6 +535,7 @@ void openSubdiv_osdGLMeshDisplayPrepare(int use_osd_glsl,
g_lighting_data.num_enabled++;
}
+ /* TODO: stop using glGetLight */
glGetLightfv(GL_LIGHT0 + i,
GL_POSITION,
g_lighting_data.lights[i].position);