gpu.framebuffers: simplify bitor.

master
John Benediktsson 2020-02-12 17:00:34 -08:00
parent e4aae0871c
commit 0ce27a4507
1 changed files with 2 additions and 2 deletions

View File

@ -382,8 +382,8 @@ TYPED:: copy-framebuffer ( to-fb-rect: framebuffer-rect
GL_READ_FRAMEBUFFER from-fb-rect framebuffer>> framebuffer-handle glBindFramebuffer
from-fb-rect [ framebuffer>> ] [ attachment>> ] bi gl-attachment glReadBuffer
to-fb-rect attachment>> [ GL_COLOR_BUFFER_BIT ] [ 0 ] if
depth? [ GL_DEPTH_BUFFER_BIT ] [ 0 ] if bitor
stencil? [ GL_STENCIL_BUFFER_BIT ] [ 0 ] if bitor :> mask
depth? [ GL_DEPTH_BUFFER_BIT bitor ] when
stencil? [ GL_STENCIL_BUFFER_BIT bitor ] when :> mask
from-fb-rect rect>> rect-extent [ first2 ] bi@
to-fb-rect rect>> rect-extent [ first2 ] bi@