Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • Program.h
Find file
BlameHistoryPermalink
  • Corentin Wallez's avatar
    WebGL compatibility: remove UB for draw buffers in the GL backend. · e7557744
    Corentin Wallez authored Jun 01, 2017
    WebGL adds two rules:
     - Fragment outputs declared but not written to should default to black.
     - FBO attachments for outputs not declared in the shader should not be
    written to (it is UB in OpenGL ES).
    
    Fix the first one by using the SH_INIT_OUTPUT_VARIABLES compiler
    options, and the second one by messing with glDrawBuffers so that the
    enabled draw buffers are always a subset of the ones declared by the
    shader.
    
    BUG=angleproject:2048
    
    Change-Id: I1d851c190959c1acfc3e41d837e6990aec1d4086
    Reviewed-on: https://chromium-review.googlesource.com/521682
    Commit-Queue: Corentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    e7557744
Program.h 21.2 KB
EditWeb IDE
×

Replace Program.h

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.