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

[BUG]PVR:(Error): IsTextureConsistent: Texture and sampler are not consistent #72

Closed ylx-lance closed 3 years ago

ylx-lance commented 3 years ago

Description

When I use “imageLoad” or “imageSize” to access a image uniform, opengles report this error: (2208) PVR:(Error): IsTextureConsistent: Texture and sampler are not consistent [ :4797 ]

Repro steps

Here are my glsl and c code: image

Environment

Additional Info

Anyone knows why this error happened?

ylx-lance commented 3 years ago

It is because I forgot to set the filtering mode with “glTexParameteri”. If the filtering mode was not set, the program can still work on x86_64, but not on ARM64.