<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Multisampled renderbuffer looses content when switched"
   href="https://bugs.webkit.org/show_bug.cgi?id=241417">241417</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Multisampled renderbuffer looses content when switched
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 15
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>iPhone / iPad
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>iOS 15
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebGL
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bleho@vectary.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dino@apple.com, kbr@google.com, kkinnunen@apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I guess GPU uses internal memory for rendering output. This output is copied into main memory when switching to different render target. When using MS render buffer data are copied out only after first use.
Steps to reproduce:
1. create multisampled renderbuffer (color/depth doesn't matter)
2. render something into this render buffer
3. switch to different framebuffer
4. switch back to previous multisampled render buffer
5. render something else (overwrite data from step 2)
6. switch to different framebuffer
7. read data from multisampled renderbuffer and observe that it contains data from step 2 instead of data from step 5.

Also noticed that gl.clear doesn't work with MS render buffer.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>