Why does mbufferid sometimes equal 0 in OgreGLES2HardwareBuffer::createBuffer and how to fix it?

24 Views Asked by At

Ogre.log: Cannot create GL ES buffer in OgreGLES2HardWareBuffer::createBuffer at OgreGLES2HardWareBuffer.cpp (line 55)

system: huawei matepad pro, hamonyOS 2.0.0

the code in ogre is: glgenbuffer(1, &mbufferid);

mbufferid will sometimes be 0, then run into OGRE_EXCEPT.

But glerror() get no_error. and I'm sure that glthread is always the same.

How to solve this problem, or why it sometime occur

0

There are 0 best solutions below