powervr-graphics / Native_SDK

C++ cross-platform 3D graphics SDK. Includes demos & helper code (resource loading etc.) to speed up development of Vulkan, OpenGL ES 2.0 & 3.x applications
https://docs.imgtec.com/sdk-documentation/html/introduction.html
MIT License
702 stars 197 forks source link

glVertexAttribPointer #45

Open SkySnows opened 4 years ago

SkySnows commented 4 years ago

The stride cannot be set. If the stride is set, the stride cannot be drawn I did not use VBO or VAO, but simply used the vertex array. However, if I set the Stride, I will not be able to draw. However, the glerror will not report the error. But in the pure use of PVR, in the mobile end, then there is no problem.

omarzohdi commented 4 years ago

Hi @SmileSFL, I'm not sure what the issue is referring to exactly. Could you please provide more information?

What version of SDK are you using? What example are you trying to run? is it one included in our sdk? What platform are you targeting?

Also, include any reproduction steps that may help us narrow down the issue. Thank you.

SkySnows commented 4 years ago

Thank you very much for answering my question. I appreciate it. My rendering is running under macOS system, and the system version is 10.15.1. I integrated this native -- SDK with Xcode and downloaded it a few days ago. The problem is this API: GlVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer) I use vertex buffering instead of VBO/VAO. So if I set the parameter GLsizei, then it won't draw the graph. If I don't use the vertex buffer and don't set the third parameter GLsizei stride, then I can render properly. I'm not using vertex buffering now, I'm using VBO instead. Then there will be no problem with the song I described.

omarzohdi commented 4 years ago

Hi @SmileSFL, thank you for elaborating on the issue. The powervr sdk was not tested against macOS 10.15. We'll be looking at the issue and providing a patch as soon as possible.