X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpixelformat.cpp;h=87191c3423122aefde6b7e38110daae5d28cb4d0;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hp=94bf9716660d8c56054ce55fa7809e519695ca3f;hpb=2edfcf08707c3627b6b27289ba607a7183d63b01;p=libs%2Fgl.git diff --git a/source/pixelformat.cpp b/source/pixelformat.cpp index 94bf9716..87191c34 100644 --- a/source/pixelformat.cpp +++ b/source/pixelformat.cpp @@ -271,10 +271,10 @@ unsigned get_component_count(PixelComponents comp) { switch(comp) { - case STENCIL_INDEX: - case DEPTH_COMPONENT: case RED: case LUMINANCE: + case DEPTH_COMPONENT: + case STENCIL_INDEX: return 1; case RG: case LUMINANCE_ALPHA: