Project

General

Profile

« Previous | Next » 

Revision d58b50e7

Added by Leszek Koltunski about 4 years ago

Remove width & height from InternalSurface and move it to InternalOutputSurface.

View differences:

src/main/java/org/distorted/library/main/DistortedNode.java
313 313
        }
314 314
      else if( node.mSurface instanceof DistortedFramebuffer )
315 315
        {
316
        int w = node.mSurface.getWidth();
317
        int h = node.mSurface.getHeight();
316
        DistortedFramebuffer fbo = (DistortedFramebuffer)node.mSurface;
317

  
318
        int w = fbo.getWidth();
319
        int h = fbo.getHeight();
318 320
        int depthStencil = DistortedFramebuffer.NO_DEPTH_NO_STENCIL;
319 321

  
320
        if( ((DistortedFramebuffer) node.mSurface).hasDepth() )
322
        if( fbo.hasDepth() )
321 323
          {
322
          boolean hasStencil = ((DistortedFramebuffer) node.mSurface).hasStencil();
324
          boolean hasStencil = fbo.hasStencil();
323 325
          depthStencil = (hasStencil ? DistortedFramebuffer.BOTH_DEPTH_STENCIL:DistortedFramebuffer.DEPTH_NO_STENCIL);
324 326
          }
325 327

  

Also available in: Unified diff