I am developing an After Effects plugin where I use a VAO for OpenGL rendering. After full screen RAM preview the VAO, which has the handle number 1, is somehow deleted (glGenVertexArrays generates 1 again). The strange thing is that the shaders and framebuffers are still valid, so it's not the entire OpenGL context that gets reset. Does anyone know what could cause this?
How can an OpenGL Vertex Array Object get deleted without calling glDeleteVertexArrays?
930 Views Asked by s---70 At
1
There are 1 best solutions below
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in OPENGL
- How to fix "Access violation executing location" when using GLFW and GLAD
- getting Access violation writing location when calling glDrawElements caused by shader
- Experimenting with GLFW library: window boundary problem and normalized coordinates
- OpenGL Framebuffer/FBO RTT subpixel movement discrepancy
- Why isn't my glfw window showing anything?
- How can glPushMatrix affect the rotation of an object around a rotating object?
- g++ / vscode apparently cannot see my src folder? "cc1plus.exe: fatal error: src/glad.c No such file or directory"
- Does addition-assignment cause dependency chain in GLSL?
- Compiling C++ program with Opengl and Glut in windows
- Using Silk.NET in WinForms
- What happens when rendering an OpenGL buffer that has been padded with NULL (or another value)?
- How can I make a sphere follow an eight-like path in Python using OpenGL?
- OpenGL only rendering second triangle, first triangle not visible
- OpenGL shows black texture on quad
- My Visual Studio 2022 consistently gives me errors saying that the GLchar variable type is undefined
Related Questions in VISUAL-STUDIO-2012
- An error occurred while trying to restore packages: 'Dapper' already has a dependency defined for 'System.Data.SqlClient'
- Getting Error 0x80131509 whenever I try to create a new empty project (using vs2012 as it's what my uni prefers)
- Visual Basic Supports
- Open Visual Studio 2012 solution in Visual Studio 2013
- Gif is Slow in Visual Studio C# Winform Application?
- The type initializer for 'Sybase.Data.AseClient1.AseConnection' threw an exception. SSIS - Sybase
- Is there a way to fix broken syntax highlighting in Visual Studio 2012?
- Visual Studio Ultimate
- Can __uuidof be used as a C-string const?
- How to connect MS Access database to Visual Basic
- Cannot drag and drop items from toolbox in Visual studio
- Invalid operation. Could not find default endpoint element
- I keep on receiving a "bash permission denied" notification every time I try to execute a program on VS Code
- Wix Toolset v4 Shortcut & installation directory per login user
- Migrating from VS2012: Opening in VS2022 does not prompt for upgrade
Related Questions in AFTER-EFFECTS
- Flutter: Lottie file crashes
- Generating a smooth sine wave transition from one set of value to another with Javascript
- LottieFiles export is blurry, but looks fine in After Effects
- What math Adobe After Effects uses for animation?
- Adobe After Effect 2020 on macOS shut off after launching
- Why does this script create one null when it should create four?
- Running JSX Script in After Effects Using Python
- nexrender-cli video rendering is getting failed due to file read issue
- After effect script] how to create composition that setting use footage timecode
- Implementation/algorithm to approximate AE white balance (temp/tint) in a shader
- Is there a way to access an After Effects audio layer's sample rate or waveform data?
- Is there a way to create a composition entirely from code in Adobe After Effects?
- Adding Scroll in After effects Script UI panel
- Error: nexrender: Can't find a property sequence Color for key: Colorwithin layer
- Select all text layers (also in sub comps) and change color with script in After Effects
Related Questions in VERTEX-ARRAY-OBJECT
- Moderngl: Render VAO with multiple shaders
- Why is my code not displaying on phone emulator with vertex array object in opengl
- How to refactor code from Vertex Array to Vertex Array Object methods
- Why should I bind the index buffer to draw elements with a VAO?
- Draw multiple buffers with the same vertex layout
- Can I glDeleteBuffer a VBO and IBO after binding to a VAO?
- GL_POLYGONS does not work how do i get my function to work
- update vertices and indices in OPENGL
- Why do I get an 'invalid operation error' when I use glGenVertexArrays() in PyOpenGL eventhough I am creating an OpenGL 4.1 context?
- Using multiple VBO in a VAO
- Error when calling GL30.glGenVertexArrays();
- When drawing multiple objects, when do you create a new vertex array object?
- OpenGL Draw Multiple Vertex Arrays
- OpenGL can't update vertex buffer with VAO procedure
- OpenGL program doesn't show a triangle
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The most likely explanation is, that your plugin gets a completely newly created OpenGL context everything time happens. If your OpenGL context shared its "list" namespace with another "caching" context, and this sharing is re-established for the new context, you'd observe this behavior.
When establishing OpenGL context namespace sharing some kinds of objects are shared, i.e. get their "internal reference counts" (you can't directly access thise) incremented for each participating context, while others are not. Objects that hold data in any form (textures, buffer objects, shaders) are shared, while abstraction objects that hold state (array objects and framebuffer objects among them) are not.
So if a new context is created and a namespace sharing with the cache context established, you'll see all the textures, shaders and so on, you created previously, while VAOs and FBOs would disappear.
If you want to catch this situation use
wglGetCurrentContextto get the OS handle. You can safely cast a windows handle touintptr_tinteger type, so for debugging you could print the value of the handle and look for if it changes.