Search Unity

Problem about vao in OpenGL native plugin

Discussion in 'General Graphics' started by Alan-Liu, Jul 25, 2018.

  1. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    392
    I'm implementing annative plugin using OpenGL Core. In a function called by GL.IssuePluginEvent, I create a vao and call glBindVertexArray (so it is a valid vao), but in the next frame, it becomes invalid (glIsVertexArray returns false). I think it may be caused by the different OpenGL contexts used between frames and found the return values of wglGetCurrentContext were different across frames. Are there some workarounds about it?
     
    brand17 likes this.