mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
mesa: replace for loop with bitshifting in supported_buffer_bitmask()
Reviewed-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
ac37d0475c
commit
c95d5c5f6f
1 changed files with 1 additions and 4 deletions
|
|
@ -58,10 +58,7 @@ supported_buffer_bitmask(const struct gl_context *ctx,
|
|||
|
||||
if (_mesa_is_user_fbo(fb)) {
|
||||
/* A user-created renderbuffer */
|
||||
GLuint i;
|
||||
for (i = 0; i < ctx->Const.MaxColorAttachments; i++) {
|
||||
mask |= (BUFFER_BIT_COLOR0 << i);
|
||||
}
|
||||
mask = ((1 << ctx->Const.MaxColorAttachments) - 1) << BUFFER_COLOR0;
|
||||
}
|
||||
else {
|
||||
/* A window system framebuffer */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue