Bugzilla – Attachment 403 Details for
Bug 658
3.1 context on Mesa 9.0.1 is buggy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
The second test as native code with GLFW
test-vertex-attrib.c (text/plain), 1.07 KB, created by
Mark Raynsford
on 2012-12-28 21:03:40 CET
(
hide
)
Description:
The second test as native code with GLFW
Filename:
MIME Type:
Creator:
Mark Raynsford
Created:
2012-12-28 21:03:40 CET
Size:
1.07 KB
patch
obsolete
>#include <GL/glfw.h> >#include <err.h> >#include <stdio.h> > >int >main (void) >{ > int e; > int buffer; > > if (glfwInit() != GL_TRUE) > errx(1, "glfwInit"); > > glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3); > glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 1); > if (glfwOpenWindow(640, 480, 8, 8, 8, 0, 24, 8, GLFW_WINDOW) != GL_TRUE) > errx(1, "glfwOpenWindow"); > > printf("renderer : %s\n", glGetString(GL_RENDERER)); > printf("version : %s\n", glGetString(GL_VERSION)); > printf("vendor : %s\n", glGetString(GL_VENDOR)); > > glGenBuffers(1, &buffer); > if (glGetError() != GL_NO_ERROR) errx(1, "glGenBuffers"); > glBindBuffer(GL_ARRAY_BUFFER, buffer); > if (glGetError() != GL_NO_ERROR) errx(1, "glBindBuffer"); > glBufferData(GL_ARRAY_BUFFER, 4 * 32, NULL, GL_STATIC_DRAW); > if (glGetError() != GL_NO_ERROR) errx(1, "glBufferData"); > glEnableVertexAttribArray(1); > if (glGetError() != GL_NO_ERROR) errx(1, "glEnableVertexAttribArray"); > glVertexAttribPointer(1, 4, GL_FLOAT, 0, 0, 0L); > > e = glGetError(); > printf("glVertexAttribPointer: %x\n", e); > > glfwTerminate(); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 658
:
402
| 403 |
404