mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1105870 - Fix -Wunused-function warnings-as-errors in nonunified build of dom/canvas. r=jgilbert
This commit is contained in:
parent
070300acb2
commit
669cfc932e
@ -223,25 +223,6 @@ WebGLFramebuffer::Attachment::RectangleObject() const
|
|||||||
// The following IsValidFBOTextureXXX functions check the internal format that
|
// The following IsValidFBOTextureXXX functions check the internal format that
|
||||||
// is used by GL or GL ES texture formats. This corresponds to the state that
|
// is used by GL or GL ES texture formats. This corresponds to the state that
|
||||||
// is stored in WebGLTexture::ImageInfo::InternalFormat()
|
// is stored in WebGLTexture::ImageInfo::InternalFormat()
|
||||||
static inline bool
|
|
||||||
IsValidFBOTextureColorFormat(TexInternalFormat internalformat)
|
|
||||||
{
|
|
||||||
/* These formats are internal formats for each texture -- the actual low
|
|
||||||
* level format, which we might have to do conversions for when running
|
|
||||||
* against desktop GL (e.g. GL_RGBA + GL_FLOAT -> GL_RGBA32F).
|
|
||||||
*
|
|
||||||
* This function just handles all of them whether desktop GL or ES.
|
|
||||||
*/
|
|
||||||
|
|
||||||
TexInternalFormat unsizedformat = UnsizedInternalFormatFromInternalFormat(internalformat);
|
|
||||||
return unsizedformat == LOCAL_GL_ALPHA ||
|
|
||||||
unsizedformat == LOCAL_GL_LUMINANCE ||
|
|
||||||
unsizedformat == LOCAL_GL_LUMINANCE_ALPHA ||
|
|
||||||
unsizedformat == LOCAL_GL_RGB ||
|
|
||||||
unsizedformat == LOCAL_GL_RGBA ||
|
|
||||||
unsizedformat == LOCAL_GL_SRGB ||
|
|
||||||
unsizedformat == LOCAL_GL_SRGB_ALPHA;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
IsValidFBOTextureDepthFormat(GLenum internalformat)
|
IsValidFBOTextureDepthFormat(GLenum internalformat)
|
||||||
@ -258,14 +239,6 @@ IsValidFBOTextureDepthStencilFormat(GLenum internalformat)
|
|||||||
// The following IsValidFBORenderbufferXXX functions check the internal format
|
// The following IsValidFBORenderbufferXXX functions check the internal format
|
||||||
// that is stored by WebGLRenderbuffer::InternalFormat(). Valid values can be
|
// that is stored by WebGLRenderbuffer::InternalFormat(). Valid values can be
|
||||||
// found in WebGLContext::RenderbufferStorage.
|
// found in WebGLContext::RenderbufferStorage.
|
||||||
static inline bool
|
|
||||||
IsValidFBORenderbufferColorFormat(GLenum internalFormat)
|
|
||||||
{
|
|
||||||
return internalFormat == LOCAL_GL_RGB565 ||
|
|
||||||
internalFormat == LOCAL_GL_RGB5_A1 ||
|
|
||||||
internalFormat == LOCAL_GL_RGBA4 ||
|
|
||||||
internalFormat == LOCAL_GL_SRGB8_ALPHA8_EXT;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
IsValidFBORenderbufferDepthFormat(GLenum internalFormat)
|
IsValidFBORenderbufferDepthFormat(GLenum internalFormat)
|
||||||
@ -702,7 +675,6 @@ WebGLFramebuffer::HasDefinedAttachments() const
|
|||||||
return hasAttachments;
|
return hasAttachments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
IsIncomplete(const WebGLFramebuffer::Attachment& cur)
|
IsIncomplete(const WebGLFramebuffer::Attachment& cur)
|
||||||
{
|
{
|
||||||
@ -782,7 +754,6 @@ WebGLFramebuffer::AllImageRectsMatch() const
|
|||||||
return imageRectsMatch;
|
return imageRectsMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const WebGLRectangleObject&
|
const WebGLRectangleObject&
|
||||||
WebGLFramebuffer::RectangleObject() const
|
WebGLFramebuffer::RectangleObject() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user