mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
mesa: force height of 1D textures to be 1 in texture views
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
parent
2c44043313
commit
0c38006b55
1 changed files with 3 additions and 0 deletions
|
|
@ -536,6 +536,9 @@ _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
|
|||
/* Adjust width, height, depth to be appropriate for new target */
|
||||
switch (target) {
|
||||
case GL_TEXTURE_1D:
|
||||
height = 1;
|
||||
break;
|
||||
|
||||
case GL_TEXTURE_3D:
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue