2014-11-17 22:52 GMT+01:00 Yuriy Tymchuk <[email protected]>:

> Hi,
>
> can someone advise me how to deal with one issue.
>
> I put Roassal3D morph is a spec composite model, and when I open the
> window I get 'Frame buffer is incomplete:
> GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT’ error because
> GLViewportMorph>>#layoutInBounds: bounds attribute has a zero coordinate.
> Should there be a guard in the method of GLViewportMorph, or I should do
> something in Spec?
>
> Uko
>

Works for me, as long as I add a height (or width) in the spec layout:

    ^ SpecLayout composed
        newColumn: [ :column |
            column
                add: #view3d height:80 ];
        yourself

(view3d is a Roassal3DModel
view3d := self instantiate: Roassal3DModel.
   view3d view:
        (R3View new
        add: R3CubeShape element;
        addInteraction: R3MKControl).

)

Reply via email to