Backed out changeset 7aa58b8ef68a (bug 1655101) for causing bustages on dom/WebGLIpdl.h. CLOSED TREE
This commit is contained in:
@@ -4394,8 +4394,6 @@ void ClientWebGLContext::TexImage(uint8_t funcDims, GLenum imageTarget,
|
||||
|
||||
// -
|
||||
|
||||
// -
|
||||
|
||||
mozilla::ipc::Shmem* pShmem = nullptr;
|
||||
// Image to release after WebGLContext::TexImage().
|
||||
RefPtr<layers::Image> keepAliveImage;
|
||||
@@ -4406,12 +4404,7 @@ void ClientWebGLContext::TexImage(uint8_t funcDims, GLenum imageTarget,
|
||||
const auto& contextInfo = mNotLost->info;
|
||||
|
||||
const auto fallbackReason = [&]() -> Maybe<std::string> {
|
||||
if (!respecFormat) {
|
||||
return Some(std::string{
|
||||
"Fast uploads not supported for TexSubImage. Use TexImage."});
|
||||
}
|
||||
auto fallbackReason = BlitPreventReason(
|
||||
level, offset, respecFormat, pi, *desc, contextInfo.isRgb8Renderable);
|
||||
auto fallbackReason = BlitPreventReason(level, offset, pi, *desc);
|
||||
if (fallbackReason) return fallbackReason;
|
||||
|
||||
const bool canUploadViaSd = contextInfo.uploadableSdTypes[sdType];
|
||||
|
||||
Reference in New Issue
Block a user