Chromium Code Reviews
DescriptionFix CopyTexImage2D when using unsized internal formats
CopyTexImage2D accepts unsized internal formats, but the code didn't properly
handle all possible cases, resulting in us storing 0 as format/type in the level
info. This can be problematic later on, e.g. triggering asserts if the texture
is used as a FBO to copy from.
This CL makes sure we're at the very least consistent, but doesn't fully
implement the spec which has specific rules to pick an effective internal format
depending on the framebuffer format.
BUG=None
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/fb68ed91e9fa7851dfc73b29cf0fff2d0cd8d8e6
Cr-Commit-Position: refs/heads/master@{#405511}
Patch Set 1 #
Messages
Total messages: 15 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||