From 9ba8566b393c33b1821c819cd6abb402cd91533f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 1 Jun 2009 11:04:10 +0000 Subject: [PATCH] Do not set the "indexed" flag for 0 bpp. --- Source/OpenTK/Graphics/ColorFormat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Graphics/ColorFormat.cs b/Source/OpenTK/Graphics/ColorFormat.cs index 601857f6..00ef6f59 100644 --- a/Source/OpenTK/Graphics/ColorFormat.cs +++ b/Source/OpenTK/Graphics/ColorFormat.cs @@ -90,7 +90,7 @@ namespace OpenTK.Graphics this.alpha = (byte)alpha; this.bitsPerPixel = red + green + blue + alpha; this.isIndexed = false; - if (this.bitsPerPixel < 15) + if (this.bitsPerPixel < 15 && this.bitsPerPixel != 0) this.isIndexed = true; }