• dcastagna's avatar
    gl: Check format is valid given an internal format. · 071378ae
    dcastagna authored
    GLImageOzoneNativePixmap used to check that format and internal format
    were valid, but didn't check that they were compatible.
    
    This CL restricts the valid internalformats given the buffer format
    used to initialize the image (e.g: it's now prohibited to initialize with
    an R8 buffer an GL_RGBA image).
    
    TEST='gl_unittests --gtest_also_run_disabled_tests' on samus
    
    Review-Url: https://codereview.chromium.org/2037983003
    Cr-Commit-Position: refs/heads/master@{#397876}
    071378ae
gl_image_ozone_native_pixmap.cc 7.13 KB