Author Topic: Clearing FrameBuffer when setRenderTarget is used  (Read 5875 times)

Offline Klaudiusz

  • int
  • **
  • Posts: 75
    • View Profile
Clearing FrameBuffer when setRenderTarget is used
« on: August 29, 2007, 03:47:48 pm »
Hi Egon,

FrameBuffer.clear() method clears the whole FrameBuffer no matter how small texture is used in setRenderTarget.

Little step in the optimalisation process:)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Clearing FrameBuffer when setRenderTarget is used
« Reply #1 on: August 29, 2007, 05:35:25 pm »
Yes, but only when FBOs are not used or not available. I wouldn't consider this to be a bug. "Optimizing" this process makes no sense, because clearing the buffer is drop dead cheap nowadays.