Disallow GL_ALPHA for framebuffer attachment rendering.

TRAC #20943 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1129 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent ecdf44a8
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1128 #define BUILD_REVISION 1129
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
// //
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
...@@ -305,6 +305,7 @@ GLenum Framebuffer::completeness() ...@@ -305,6 +305,7 @@ GLenum Framebuffer::completeness()
D3DFORMAT d3dformat = colorbuffer->getD3DFormat(); D3DFORMAT d3dformat = colorbuffer->getD3DFormat();
if (IsCompressed(internalformat) || if (IsCompressed(internalformat) ||
internalformat == GL_ALPHA ||
internalformat == GL_LUMINANCE || internalformat == GL_LUMINANCE ||
internalformat == GL_LUMINANCE_ALPHA) internalformat == GL_LUMINANCE_ALPHA)
{ {
......
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