mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Test that creating and destroying contexts doens't have side effects
This commit is contained in:
@@ -85,6 +85,16 @@ void main()
|
||||
|
||||
uint32_t idxs[3] = {0, 1, 2};
|
||||
|
||||
for(int i = 0; i < 100; i++)
|
||||
{
|
||||
GraphicsWindow *win2 = MakeWindow(32, 32, NULL);
|
||||
void *ctx2 = MakeContext(win2, mainContext);
|
||||
ActivateContext(win2, ctx2);
|
||||
ActivateContext(mainWindow, mainContext);
|
||||
DestroyContext(ctx2);
|
||||
delete win2;
|
||||
}
|
||||
|
||||
GLuint vb = MakeBuffer();
|
||||
glBindBuffer(GL_ARRAY_BUFFER, vb);
|
||||
glBufferStorage(GL_ARRAY_BUFFER, sizeof(DefaultTri), DefaultTri, 0);
|
||||
|
||||
Reference in New Issue
Block a user