2 // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
7 // Error.cpp: Implements the gl::Error class which encapsulates an OpenGL error
8 // and optional error message.
10 #include "libGLESv2/Error.h"
12 #include "common/angleutils.h"
19 Error::Error(GLenum errorCode)
25 Error::Error(GLenum errorCode, const char *msg, ...)
30 va_start(vararg, msg);
31 mMessage = FormatString(msg, vararg);
35 Error::Error(const Error &other)
37 mMessage(other.mMessage)
41 Error &Error::operator=(const Error &other)
44 mMessage = other.mMessage;