bool GraphicsContext3DPrivate::isOpenGLES() const { if (m_platformContext) return m_platformContext->isOpenGLES(); #if USE(OPENGL_ES_2) return true; #else return false; #endif }
bool GraphicsContext3DPrivate::isValid() const { if (!m_platformContext || !m_platformContext->isValid()) return false; return m_platformContext->isOpenGLES() || m_platformContext->format().majorVersion() >= 2; }