Skip to content

Commit 3773993

Browse files
committed
IECoreMaya::ImageFile : Fix with RGB images
Definitely looks like the 3 component color case is completely broken - ideally, I would test for this, but since it's currently broken and no one cares, I'm just making sure it compiles with -Wextra
1 parent 86ecbb3 commit 3773993

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/IECoreMaya/ImageFile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,10 @@ MStatus ImageFile::glLoad( const MImageFileInfo& info, unsigned int idx )
290290
{
291291
case 3:
292292
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGB, m_width, m_height, 0, GL_RGB, GL_FLOAT, &pixels[0] );
293+
break;
293294
case 4:
294295
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, m_width, m_height, 0, GL_RGBA, GL_FLOAT, &pixels[0] );
296+
break;
295297
default:
296298
assert(false);
297299
}

0 commit comments

Comments
 (0)