gl: Check format is valid given an internal format.
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}
Showing
Please register or sign in to comment