if (gdk_gl_context_get_use_es (context)) {
printf("%s(),%d, gles\n", __func__, __LINE__);
} else {
- printf("%s(),%d, gl\n", __func__, __LINE__);
+ printf("%s(),%d, gl, width: %d, height: %d\n", __func__, __LINE__, width, height);
}
// simp_avio_run(user_data);
glActiveTexture(GL_TEXTURE0);
glBindTexture (GL_TEXTURE_2D, gl->texture_y);
+ glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, SIMP_GL_WIDTH, SIMP_GL_HEIGHT, GL_RED, GL_UNSIGNED_BYTE, gl->y);
glUniform1i (gl->uniform_y, 0);
glActiveTexture(GL_TEXTURE1);
glBindTexture (GL_TEXTURE_2D, gl->texture_u);
+ glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, SIMP_GL_WIDTH / 2, SIMP_GL_HEIGHT/ 2, GL_RED, GL_UNSIGNED_BYTE, gl->u);
glUniform1i (gl->uniform_u, 1);
glActiveTexture(GL_TEXTURE2);
glBindTexture (GL_TEXTURE_2D, gl->texture_v);
+ glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, SIMP_GL_WIDTH / 2, SIMP_GL_HEIGHT/ 2, GL_RED, GL_UNSIGNED_BYTE, gl->v);
glUniform1i (gl->uniform_v, 2);
// draw