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 4 of 4

Thread: Programmable Vertex Pulling with CORE mode?

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2012
    Posts
    13

    Programmable Vertex Pulling with CORE mode?

    Hi,

    I got PVP working in COMPATIBILITY mode. When I switched to CORE, I get
    Type: Error; Source: API; ID: 1282; Severity: High
    GL_INVALID_OPERATION error generated. Array object is not active.

    I am using SSBO, UBO, and MultiDrawIndirect; I am completely avoiding the use of any VAO since I'm doing PVP.
    Does PVP work in core? I'm not sure why would the spec require a bound array object......

    Thank you.
    Last edited by Johnny Tremain; 03-22-2014 at 01:01 PM.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    785
    I'm not sure why would the spec require a bound array object
    AFAIK it does though - you can just create and bind a VAO during initialization and then never touch it again.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2012
    Posts
    13
    Haha, thanks for the confirmation; I was hoping for a more elegant solution

    It blows my mind that PVP still requires a useless vao to be around for core profile.

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Dec 2007
    Location
    Hungary
    Posts
    985
    A VAO is needed, because there is no default VAO in core profile. While you don't use any vertex attributes when you do PVP, you might want to use an element array buffer for indexed primitives, and that is also part of the VAO state.
    Also, it's no big deal because you only have to have a single dummy VAO bound all the time and that's all.
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog: http://www.rastergrid.com/blog/

Posting Permissions

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