summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglframebufferobject.cpp
diff options
context:
space:
mode:
authorLorn Potter <[email protected]>2018-06-30 08:48:52 +1000
committerLorn Potter <[email protected]>2018-07-16 08:18:17 +0000
commit51a614a419e9745d275793e36b6aab295bf1e8e3 (patch)
tree7ad6238bf1801d39bfb67d7d6823543d04d48dea /src/gui/opengl/qopenglframebufferobject.cpp
parent95e9cbb3eef695aa7b1192678c75d4be166b93a0 (diff)
wasm: rename platform, refactor files and other things
Task-number: QTBUG-69168 Change-Id: I78a3ad5e16fbb1046eedf2056583c022f7a27d5b Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Diffstat (limited to 'src/gui/opengl/qopenglframebufferobject.cpp')
-rw-r--r--src/gui/opengl/qopenglframebufferobject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/opengl/qopenglframebufferobject.cpp b/src/gui/opengl/qopenglframebufferobject.cpp
index 20f1d068953..0831ca32a0c 100644
--- a/src/gui/opengl/qopenglframebufferobject.cpp
+++ b/src/gui/opengl/qopenglframebufferobject.cpp
@@ -602,7 +602,7 @@ void QOpenGLFramebufferObjectPrivate::initDepthStencilAttachments(QOpenGLContext
const int samples = requestedSamples;
// free existing attachments
-#ifdef Q_OS_HTML5
+#ifdef Q_OS_WASM
if (depth_buffer_guard) {
funcs.glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0);
depth_buffer_guard->free();
@@ -628,7 +628,7 @@ void QOpenGLFramebufferObjectPrivate::initDepthStencilAttachments(QOpenGLContext
// In practice, a combined depth-stencil buffer is supported by all desktop platforms, while a
// separate stencil buffer is not. On embedded devices however, a combined depth-stencil buffer
// might not be supported while separate buffers are, according to QTBUG-12861.
-#ifdef Q_OS_HTML5
+#ifdef Q_OS_WASM
// WebGL doesn't allow separately attach buffers to
// STENCIL_ATTACHMENT and DEPTH_ATTACHMENT
if (attachment == QOpenGLFramebufferObject::CombinedDepthStencil) {
@@ -747,12 +747,12 @@ void QOpenGLFramebufferObjectPrivate::initDepthStencilAttachments(QOpenGLContext
stencil_buffer = 0;
}
}
-#endif //Q_OS_HTML5
+#endif //Q_OS_WASM
// The FBO might have become valid after removing the depth or stencil buffer.
valid = checkFramebufferStatus(ctx);
-#ifdef Q_OS_HTML5
+#ifdef Q_OS_WASM
if (depth_buffer) {
#else
if (depth_buffer && stencil_buffer) {