Bugzilla – Attachment 476 Details for
Bug 746
Shapes not displayed using Fedora 18 and open source driver
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test program (freeglut)
test.cpp (text/x-c++src), 983 bytes, created by
dan.j.allen
on 2013-06-06 22:20:45 CEST
(
hide
)
Description:
Test program (freeglut)
Filename:
MIME Type:
Creator:
dan.j.allen
Created:
2013-06-06 22:20:45 CEST
Size:
983 bytes
patch
obsolete
>#define GL_GLEXT_PROTOTYPES > >#include <iostream> >#include "GL/freeglut.h" >#include "GL/gl.h" >#include "GL/glext.h" > >using std::cout; >using std::endl; > >void renderFunction() >{ > glClearColor(0.0, 0.0, 0.0, 0.0); > glClear(GL_COLOR_BUFFER_BIT); > glColor3f(1.0, 1.0, 1.0); > glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0); > glBegin(GL_POLYGON); > glVertex2f(-0.5, -0.5); > glVertex2f(-0.5, 0.5); > glVertex2f(0.5, 0.5); > glVertex2f(0.5, -0.5); > glEnd(); > glFlush(); > GLuint handle; > for(int i = 0; i < 5; i++) > { > glGenBuffers(1, &handle); > cout << "Buffer Generated: " << handle << endl; > glDeleteBuffers(1, &handle); > } >} > >int main(int argc, char** argv) >{ > glutInit(&argc, argv); > glutInitDisplayMode(GLUT_SINGLE); > glutInitWindowSize(500,500); > glutInitWindowPosition(100,100); > glutCreateWindow("Test glDeleteBuffer"); > glutDisplayFunc(renderFunction); > glutMainLoop(); > 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 746
:
473
|
474
|
475
| 476 |
477
|
478
|
479