mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
progs/perf: added check for GL_ARB_framebuffer_object
This commit is contained in:
parent
79e74cda73
commit
fdae39c289
1 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "glmain.h"
|
||||
#include "common.h"
|
||||
|
||||
|
|
@ -53,6 +54,11 @@ static const struct vertex vertices[1] = {
|
|||
void
|
||||
PerfInit(void)
|
||||
{
|
||||
if (!PerfExtensionSupported("GL_ARB_framebuffer_object")) {
|
||||
printf("Sorry, this test requires GL_ARB_framebuffer_object\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* setup VBO w/ vertex data */
|
||||
glGenBuffersARB(1, &VBO);
|
||||
glBindBufferARB(GL_ARRAY_BUFFER_ARB, VBO);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue