Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67817

wasm webassembly: creating opengl v 3 (webgl2) context fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.11.0 RC 1
    • QPA
    • None
    • WebAssembly
    • Ifbd434f4d25e49f671145a6727999a90920d6810

    Description

      Using the contextinfo example app, creating an opengl 3 context fails:

      (QHtml5OpenGLContext::makeCurrent:119) - virtual bool QHtml5OpenGLContext::makeCurrent(QPlatformSurface *) 43
      qtloader.js:254:17
      (Widget::start:296) - Requesting surface format QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 16, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
      qtloader.js:254:17
      (QHtml5Window::QHtml5Window:56) - QHtml5Window 0xb472a0: 0x8532a0 0x3
      qtloader.js:254:17
      qtloader.js:254:17
      (QHtml5Window::QHtml5Window:58) - Surfacetype 1
      qtloader.js:254:17
      (QHtml5OpenGLContext::createEmscriptenContext:82) - static EMSCRIPTEN_WEBGL_CONTEXT_HANDLE QHtml5OpenGLContext::createEmscriptenContext(const char *, QSurfaceFormat) 3
      qtloader.js:254:17
      Could not create canvas: ?,,

      {"alpha":false,"depth":true,"stencil":false,"antialias":true,"premultipliedAlpha":true,"preserveDrawingBuffer":false,"preferLowPowerToHighPerformance":false,"failIfMajorPerformanceCaveat":false,"majorVersion":2,"minorVersion":0,"explicitSwapControl":0}

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            lpotter Lorn Potter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes