fix compilation errors with new buffer merge

This commit is contained in:
David Rose 2006-03-23 19:02:16 +00:00
parent d1e65cd52d
commit 6335ebe61c
6 changed files with 11 additions and 7 deletions

View File

@ -280,7 +280,7 @@ make_output(const string &name,
GraphicsStateGuardian *gsg,
GraphicsOutput *host,
int retry,
bool precertify) {
bool &precertify) {
if (!_is_valid) {
return NULL;

View File

@ -119,7 +119,7 @@ protected:
GraphicsStateGuardian *gsg,
GraphicsOutput *host,
int retry,
bool precertify);
bool &precertify);
private:
#ifdef HAVE_GLXFBCONFIG

View File

@ -120,7 +120,8 @@ reset() {
software = true;
}
FrameBufferProperties properties = get_properties();
// FIXME: should these properties be taken from the window?
FrameBufferProperties properties = get_default_properties();
int frame_buffer_mode = properties.get_frame_buffer_mode();
// If "Mesa" is present, assume software. However, if "Mesa DRI" is
@ -150,10 +151,13 @@ reset() {
frame_buffer_mode = (frame_buffer_mode | FrameBufferProperties::FM_hardware) & ~FrameBufferProperties::FM_software;
}
// FIXME: we need a place to store this now.
/*
// Update the GSG's record to indicate whether we believe it is a
// hardware or software renderer.
properties.set_frame_buffer_mode(frame_buffer_mode);
set_properties(properties);
*/
}
////////////////////////////////////////////////////////////////////

View File

@ -50,7 +50,7 @@ glxGraphicsWindow(GraphicsPipe *pipe,
int x_size, int y_size, int flags,
GraphicsStateGuardian *gsg,
GraphicsOutput *host) :
GraphicsWindow(pipe, name, x_size, y_size, flags, gsg, host)
GraphicsWindow(pipe, name, properties, x_size, y_size, flags, gsg, host)
{
glxGraphicsPipe *glx_pipe;
DCAST_INTO_V(glx_pipe, _pipe);

View File

@ -144,7 +144,7 @@ make_output(const string &name,
((flags&BF_require_window)!=0)||
((flags&BF_size_track_host)!=0)||
((flags&BF_can_bind_every)!=0)||
(properties != gsg->get_default_properties()) {
(properties != gsg->get_default_properties())) {
return NULL;
}
return new OsMesaGraphicsBuffer(this, name, properties,

View File

@ -54,7 +54,7 @@ protected:
GraphicsStateGuardian *gsg,
GraphicsOutput *host,
int retry,
bool precertify);
bool &precertify);
private: