mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-16 10:04:28 +02:00
#23 fix VAO
This commit is contained in:
@@ -191,7 +191,7 @@ struct Mesh {
|
||||
|
||||
void initRange(MeshRange &range) {
|
||||
#ifndef _PSP
|
||||
if (Core::support.VAO) {
|
||||
if (Core::support.VAO && VAO) {
|
||||
ASSERT(aIndex < aCount);
|
||||
range.aIndex = aIndex++;
|
||||
range.bind(VAO);
|
||||
@@ -219,10 +219,9 @@ struct Mesh {
|
||||
range.bind(VAO);
|
||||
#endif
|
||||
|
||||
if (range.aIndex == -1) {
|
||||
bind();
|
||||
if (range.aIndex == -1)
|
||||
range.setup(vBuffer);
|
||||
};
|
||||
|
||||
Core::DIP(range.iStart, range.iCount, iBuffer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user