mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-13 06:38:31 +09:00
[Fix] (MG_Impl/GLImpl, MG_Backend): fix piglit texture and buffer cases
This commit is contained in:
@@ -99,7 +99,7 @@ namespace MobileGL::MG_State::GLState {
|
||||
}
|
||||
for (auto& imageBinding : m_imageTextureBindings) {
|
||||
if (imageBinding.Texture == it->second) {
|
||||
imageBinding.Bind(nullptr, 0, GL_FALSE, 0, GL_READ_ONLY, GL_RGBA8);
|
||||
imageBinding.Bind(nullptr, 0, GL_FALSE, 0, GL_READ_ONLY, GL_R8);
|
||||
}
|
||||
}
|
||||
m_textureObjects.erase(it);
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace MobileGL::MG_State::GLState {
|
||||
GLboolean Layered = GL_FALSE;
|
||||
GLint Layer = 0;
|
||||
GLenum Access = GL_READ_ONLY;
|
||||
GLenum Format = GL_RGBA8;
|
||||
GLenum Format = GL_R8;
|
||||
Uint16 Version = 0;
|
||||
|
||||
void Bind(SharedPtr<ITextureObject> texture, GLint level, GLboolean layered, GLint layer, GLenum access,
|
||||
|
||||
Reference in New Issue
Block a user