mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-17 18:48:47 +02:00
Rm extra GL logging
This commit is contained in:
parent
64ced6ee04
commit
23e3b7e4e3
2 changed files with 0 additions and 19 deletions
|
@ -39,14 +39,6 @@ GLWindow::~GLWindow() {
|
||||||
bool GLWindow::makeCurrent() {
|
bool GLWindow::makeCurrent() {
|
||||||
bool makeCurrentResult = _context->makeCurrent(this);
|
bool makeCurrentResult = _context->makeCurrent(this);
|
||||||
Q_ASSERT(makeCurrentResult);
|
Q_ASSERT(makeCurrentResult);
|
||||||
|
|
||||||
std::call_once(_reportOnce, []{
|
|
||||||
qDebug() << "GL Version: " << QString((const char*) glGetString(GL_VERSION));
|
|
||||||
qDebug() << "GL Shader Language Version: " << QString((const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
|
|
||||||
qDebug() << "GL Vendor: " << QString((const char*) glGetString(GL_VENDOR));
|
|
||||||
qDebug() << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER));
|
|
||||||
});
|
|
||||||
|
|
||||||
Q_ASSERT(_context == QOpenGLContext::currentContext());
|
Q_ASSERT(_context == QOpenGLContext::currentContext());
|
||||||
|
|
||||||
return makeCurrentResult;
|
return makeCurrentResult;
|
||||||
|
|
|
@ -44,10 +44,6 @@ bool OffscreenGLCanvas::create(QOpenGLContext* sharedContext) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
qWarning() << "GL Version: " << QString((const char*) glGetString(GL_VERSION));
|
|
||||||
qWarning() << "GL Shader Language Version: " << QString((const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
|
|
||||||
qWarning() << "GL Vendor: " << QString((const char*) glGetString(GL_VENDOR));
|
|
||||||
qWarning() << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER));
|
|
||||||
qWarning() << "Failed to create OffscreenGLCanvas";
|
qWarning() << "Failed to create OffscreenGLCanvas";
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -57,13 +53,6 @@ bool OffscreenGLCanvas::makeCurrent() {
|
||||||
bool result = _context->makeCurrent(_offscreenSurface);
|
bool result = _context->makeCurrent(_offscreenSurface);
|
||||||
Q_ASSERT(result);
|
Q_ASSERT(result);
|
||||||
|
|
||||||
std::call_once(_reportOnce, []{
|
|
||||||
qDebug() << "GL Version: " << QString((const char*) glGetString(GL_VERSION));
|
|
||||||
qDebug() << "GL Shader Language Version: " << QString((const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
|
|
||||||
qDebug() << "GL Vendor: " << QString((const char*) glGetString(GL_VENDOR));
|
|
||||||
qDebug() << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER));
|
|
||||||
});
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (result && !_logger) {
|
if (result && !_logger) {
|
||||||
_logger = new QOpenGLDebugLogger(this);
|
_logger = new QOpenGLDebugLogger(this);
|
||||||
|
|
Loading…
Reference in a new issue