mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-13 09:19:03 +08:00
Use const reference for Buffer to fix compilation.
Removed UTF BOM?
This commit is contained in:
parent
63419a11e1
commit
c29bd3d9ce
@ -1,4 +1,4 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
@ -56,7 +56,7 @@ std::map<int, GLuint> bindMesh(std::map<int, GLuint> vbos,
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
tinygltf::Buffer buffer = model.buffers[bufferView.buffer];
|
const tinygltf::Buffer &buffer = model.buffers[bufferView.buffer];
|
||||||
std::cout << "bufferview.target " << bufferView.target << std::endl;
|
std::cout << "bufferview.target " << bufferView.target << std::endl;
|
||||||
|
|
||||||
GLuint vbo;
|
GLuint vbo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user