Permalink
Browse files

Don't finish async readback statistics. It's unneeded since the opera…

…tion is synchronous by definition. The glFinish did deadlock in the first frame occasionally during debugging of #117 -- likely a X11/driver bug (glx context is current and XInitThreads was called...)
  • Loading branch information...
1 parent 6b8d37b commit 6dbec89ce9e481271b1d53ecd837747e2c80b835 @eile eile committed Apr 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 libs/eq/client/channelStatistics.cpp
@@ -54,6 +54,7 @@ ChannelStatistics::ChannelStatistics( const Statistic::Type type,
event.data.statistic.resourceName[31] = 0;
if( _hint == NICEST &&
+ type != Statistic::CHANNEL_ASYNC_READBACK &&
type != Statistic::CHANNEL_FRAME_TRANSMIT &&
type != Statistic::CHANNEL_FRAME_COMPRESS &&
type != Statistic::CHANNEL_FRAME_WAIT_SENDTOKEN )
@@ -72,6 +73,7 @@ ChannelStatistics::~ChannelStatistics()
const Statistic::Type type = event.data.statistic.type;
if( _hint == NICEST &&
+ type != Statistic::CHANNEL_ASYNC_READBACK &&
type != Statistic::CHANNEL_FRAME_TRANSMIT &&
type != Statistic::CHANNEL_FRAME_COMPRESS &&
type != Statistic::CHANNEL_FRAME_WAIT_SENDTOKEN )

0 comments on commit 6dbec89

Please sign in to comment.