intel: fix EGLImage renderbuffer _BaseFormat
Correctly set _BaseFormat field when creating a gl_renderbuffer with EGLImage storage. Change-Id: I8c9f7302d18b617f54fa68304d8ffee087ed8a77 Signed-off-by: Frank Henigman <fjhenigman@google.com> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> Reviewed-by: Chad Versace <chad.versace@intel.com>
This commit is contained in:
committed by
Chad Versace
parent
8e67fd798e
commit
e43729943e
@@ -287,8 +287,7 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx,
|
||||
rb->Width = image->region->width;
|
||||
rb->Height = image->region->height;
|
||||
rb->Format = image->format;
|
||||
rb->_BaseFormat = _mesa_base_fbo_format(&intel->ctx,
|
||||
image->internal_format);
|
||||
rb->_BaseFormat = _mesa_get_format_base_format(image->format);
|
||||
rb->NeedsFinishRenderTexture = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -398,7 +398,7 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx,
|
||||
rb->Width = image->width;
|
||||
rb->Height = image->height;
|
||||
rb->Format = image->format;
|
||||
rb->_BaseFormat = _mesa_base_fbo_format(ctx, image->internal_format);
|
||||
rb->_BaseFormat = _mesa_get_format_base_format(image->format);
|
||||
rb->NeedsFinishRenderTexture = true;
|
||||
irb->layer_count = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user