Commit 652c4c68 authored by Frédéric Larue's avatar Frédéric Larue

Missing types added to the ChannelCount() GPU function.

parent 64a55ab3
......@@ -22,7 +22,9 @@ namespace GPU
{
switch( format )
{
case GL_LUMINANCE: return 1;
case GL_LUMINANCE:
case GL_R : return 1;
case GL_RG : return 2;
case GL_RGB : return 3;
case GL_RGBA : return 4;
default : assert(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment