Hehehehe it still doesn't work
This commit is contained in:
@@ -152,4 +152,10 @@ unsigned int createTexture(char* path){
|
||||
return texture;
|
||||
}
|
||||
|
||||
void buffercpy(int VBO, void* ptr, int size){
|
||||
glBindBuffer(GL_ARRAY_BUFFER, VBO);
|
||||
void* buffer = glMapBuffer(GL_ARRAY_BUFFER, GL_READ_WRITE);
|
||||
memcpy(buffer, ptr, size);
|
||||
glUnmapBuffer(GL_ARRAY_BUFFER);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user