Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Properly rendering to framebuffer, that bigger than viewport

  1. #1
    Newbie Newbie
    Join Date
    Sep 2017
    Posts
    1

    Question Properly rendering to framebuffer, that bigger than viewport

    Hello. I have framebuffer, that bigger than viewport. When i'm trying to render into this framebuffer result is cut.
    How properly apply shader to framebuffer that differ from viewport?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,528
    Set the viewport to match the framebuffer.

    The first time that a context is bound to a drawable (window, pixmap, etc), the viewport is automatically set to the extent of the drawable. Thereafter, you need to set the viewport explicitly with glViewport.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •