Issue 8694 in angleproject: Max level must be ignored for completeness of non-mipmapped textures

3 views
Skip to first unread message

lexa.… via monorail

unread,
May 14, 2024, 1:06:42 PM5/14/24
to angleproj...@googlegroups.com
Status: Available
Owner: ----
CC: k...@chromium.org, geoff...@chromium.org, syou...@chromium.org
Priority: Medium
Type: Defect

New issue 8694 by lexa....@gmail.com: Max level must be ignored for completeness of non-mipmapped textures
https://bugs.chromium.org/p/angleproject/issues/detail?id=8694

Consider the following example:

glBindTexture(GL_TEXTURE_2D, tex);

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 1);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 0);

const GLubyte data[4] = {0x00, 0xFF, 0x00, 0xFF};
glTexImage2D(GL_TEXTURE_2D, 1, GL_RGBA8, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, data);

The texture is not _mipmap_ complete because the base level is greater than the max level but it is complete because mipmapping is not used.

ANGLE currently treats such textures as incomplete.

--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings
Reply all
Reply to author
Forward
0 new messages