浏览代码

Fix missing function

from OpenGL 3 in OpenGL ES 3

See this documentation : http://docs.gl/es3/glMapBufferRange
DricomDragon 4 年之前
父节点
当前提交
904bafc771
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arena/Cube.cpp

+ 1 - 1
arena/Cube.cpp

@@ -193,7 +193,7 @@ void Cube::updateVBO(void *donnees, int tailleBytes, int decalage)
 
         // Récupération de l'adresse du VBO
 
-        void *adresseVBO = glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY);
+        void *adresseVBO = glMapBufferRange(GL_ARRAY_BUFFER, decalage, tailleBytes, GL_MAP_WRITE_BIT);
 
 
         // Si l'adresse retournée est nulle alors on arrête le transfert