mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
allow format = GL_RGB5, GL_RGBA8
This commit is contained in:
parent
bfbe2eb6e9
commit
de2b3506ea
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ driNewRenderbuffer(GLenum format, GLvoid *addr,
|
|||
|
||||
drb->Base.InternalFormat = format;
|
||||
|
||||
if (format == GL_RGBA) {
|
||||
if (format == GL_RGBA || format == GL_RGB5 || format == GL_RGBA8) {
|
||||
/* Color */
|
||||
drb->Base._BaseFormat = GL_RGBA;
|
||||
drb->Base.DataType = GL_UNSIGNED_BYTE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue