state_diff.c revision 8876219d525cf14bb73600c2bfa98ddaaf13ca03
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "state.h"
#include "cr_error.h"
#include "cr_mem.h"
#include "cr_pixeldata.h"
#include <stdio.h>
{
/*crDebug( "Diffing two contexts!" ); */
{
}
{
}
{
}
{
}
{
}
{
}
{
}
#ifdef CR_ARB_vertex_buffer_object
{
}
#endif
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
#ifdef CR_ARB_imaging
{
}
#endif
#if 0
{
}
#endif
#ifdef CR_NV_register_combiners
{
}
#endif
#ifdef CR_ARB_multisample
{
}
#endif
{
}
}
{
{
}
{
}
}
{
uint32_t i;
{
}
{
{
{
}
{
}
{
}
}
{
{
}
{
}
{
}
{
}
}
diff_api.ReadPixels(el->posX, el->posY, el->width, el->height, el->enmFormat, el->enmType, el->pvData);
crDebug("Acquired %d;%d;%d;%d;%d;0x%p fb image", el->enmBuffer, el->width, el->height, el->enmFormat, el->enmType, el->pvData);
{
{
}
{
}
{
}
}
{
{
}
{
}
{
}
{
}
}
}
{
}
{
}
else if (data->idOverrrideFBO)
{
}
else
{
}
return VINF_SUCCESS;
}
{
{
uint32_t i;
{
}
{
#if 0
char fname[200];
#endif
{
{
}
{
}
}
{
{
}
{
}
{
}
}
crDebug("Applied %d;%d;%d;%d;%d;0x%p fb image", el->enmBuffer, el->width, el->height, el->enmFormat, el->enmType, el->pvData);
{
{
}
{
}
}
{
{
}
{
}
{
}
}
}
{
}
{
}
else if (data->idOverrrideFBO)
{
}
else
{
}
{
}
{
}
{
}
{
}
{
}
{
}
}
}
{
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
#ifdef CR_ARB_vertex_buffer_object
{
}
#endif
{
}
#if 0
{
}
#endif
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
#ifdef CR_ARB_imaging
{
}
#endif
#if 0
{
}
#endif
#ifdef CR_NV_register_combiners
{
}
#endif
#ifdef CR_ARB_multisample
{
}
#endif
#ifdef CR_ARB_multisample
{
}
#endif
#ifdef CR_EXT_framebuffer_object
/*Note, this should go after crStateTextureSwitch*/
#endif
#ifdef CR_OPENGL_VERSION_2_0
#endif
{
}
#ifdef WINDOWS
{
}
#endif
}
{
{
}
}
{
{
static int cErrPrints = 0;
#ifndef DEBUG_misha
if (cErrPrints < 5)
#endif
{
++cErrPrints;
}
}
return err;
}
{
if (!fromCtx)
return;
#ifdef CR_EXT_framebuffer_object
#endif
}
void crStateSwitchPostprocess(CRContext *toCtx, CRContext *fromCtx, GLuint idDrawFBO, GLuint idReadFBO)
{
if (!toCtx)
return;
#ifdef CR_EXT_framebuffer_object
#endif
{
CR_STATE_CLEAN_HW_ERR_WARN("error on make current");
}
}