call activate at render_frame(), not clear()

This commit is contained in:
David Rose 2002-01-13 20:30:57 +00:00
parent 4d6334533b
commit 6c36d79dd0
1 changed files with 3 additions and 2 deletions

View File

@ -344,7 +344,7 @@ reset() {
void GLGraphicsStateGuardian::
clear(const RenderBuffer &buffer) {
PStatTimer timer(_win->_clear_pcollector);
activate();
// activate();
nassertv(buffer._gsg == this);
int buffer_type = buffer._buffer_type;
@ -467,6 +467,7 @@ render_frame() {
<< " --------------------------------------------" << endl;
#endif
activate();
_win->begin_frame();
report_errors();
_decal_level = 0;
@ -606,7 +607,7 @@ render_subgraph(RenderTraverser *traverser,
const AllTransitionsWrapper &net_trans) {
// Calling activate() frequently seems to be intolerably expensive
// on some platforms. We'll limit ourselves for now to calling it
// only during the clear().
// only in render_frame().
// activate();