|
@@ -50,7 +50,6 @@ void Nviz_init_render_window(struct render_window *rwin)
|
|
#elif defined(OPENGL_AQUA)
|
|
#elif defined(OPENGL_AQUA)
|
|
rwin->pixelFmtId = NULL;
|
|
rwin->pixelFmtId = NULL;
|
|
rwin->contextId = NULL;
|
|
rwin->contextId = NULL;
|
|
- rwin->pixmap = 0;
|
|
|
|
rwin->windowId = NULL;
|
|
rwin->windowId = NULL;
|
|
#elif defined(OPENGL_WINDOWS)
|
|
#elif defined(OPENGL_WINDOWS)
|
|
rwin->displayId = NULL;
|
|
rwin->displayId = NULL;
|
|
@@ -141,8 +140,6 @@ int Nviz_create_render_window(struct render_window *rwin, void *display,
|
|
|
|
|
|
rwin->contextId = aglCreateContext(rwin->pixelFmtId, NULL);
|
|
rwin->contextId = aglCreateContext(rwin->pixelFmtId, NULL);
|
|
|
|
|
|
- /* create win pixmap to render to (same depth as RootWindow) */
|
|
|
|
- rwin->pixmap = NULL; /* TODO: create GWorldPtr */
|
|
|
|
/* create an off-screen AGL rendering area */
|
|
/* create an off-screen AGL rendering area */
|
|
aglCreatePBuffer(width, height, GL_TEXTURE_2D, GL_RGBA, 0, &(rwin->windowId));
|
|
aglCreatePBuffer(width, height, GL_TEXTURE_2D, GL_RGBA, 0, &(rwin->windowId));
|
|
#elif defined(OPENGL_WINDOWS)
|
|
#elif defined(OPENGL_WINDOWS)
|