vghwinterface/vghwapiwrapper/src/eglapiwrapper.cpp
branchbug235_bringup_0
changeset 71 243bbc1d70db
parent 56 40cc73c24bf8
equal deleted inserted replaced
70:08233365fef6 71:243bbc1d70db
    59 
    59 
    60 int EGLAPIWrapper::WriteReply()
    60 int EGLAPIWrapper::WriteReply()
    61 {
    61 {
    62     TRACE("EGLAPIWrapper::WriteReply()\n");
    62     TRACE("EGLAPIWrapper::WriteReply()\n");
    63 #ifdef LOG_ERROR
    63 #ifdef LOG_ERROR
       
    64 #ifdef PRINT_TRACES
    64 	int operationid = (int)m_currentFunctionCall.Data().Header().iOpCode;
    65 	int operationid = (int)m_currentFunctionCall.Data().Header().iOpCode;
       
    66 #endif
    65 	int eglerror = ::eglSimulatorGetError();
    67 	int eglerror = ::eglSimulatorGetError();
    66 	if ( m_lastEglError != eglerror )
    68 	if ( m_lastEglError != eglerror )
    67 	{
    69 	{
    68 		if ( EGL_SUCCESS != eglerror )
    70 		if ( EGL_SUCCESS != eglerror )
    69 			{
    71 			{
   571 {
   573 {
   572     TRACE("EGLAPIWrapper::eglCreateContext() ->\n");
   574     TRACE("EGLAPIWrapper::eglCreateContext() ->\n");
   573     EGLDisplay dpy;
   575     EGLDisplay dpy;
   574     EGLConfig config;
   576     EGLConfig config;
   575     EGLContext share_context;
   577     EGLContext share_context;
   576 	EGLBoolean sgSupporting(EGL_FALSE);
       
   577 
   578 
   578     m_currentFunctionCall.GetEGLDisplay( dpy, 0 );
   579     m_currentFunctionCall.GetEGLDisplay( dpy, 0 );
   579     m_currentFunctionCall.GetEGLConfig( config, 1 );
   580     m_currentFunctionCall.GetEGLConfig( config, 1 );
   580     m_currentFunctionCall.GetEGLContext( share_context, 2 );
   581     m_currentFunctionCall.GetEGLContext( share_context, 2 );
   581 
   582 
   924 	EGLint     sgConfigsToReturnCnt;
   925 	EGLint     sgConfigsToReturnCnt;
   925 	int        sgConfigsToReturnIndex = 0;
   926 	int        sgConfigsToReturnIndex = 0;
   926 
   927 
   927 	//For storing all the configs
   928 	//For storing all the configs
   928 	EGLConfig*  allConfigs = 0;
   929 	EGLConfig*  allConfigs = 0;
   929 	EGLint      allConfigsSize = 0;//size of the array
       
   930 	EGLint      allConfigsCnt = 0;//Number of actually received configurations
   930 	EGLint      allConfigsCnt = 0;//Number of actually received configurations
   931 
   931 
   932 	//Allocate temporary storage for the attributes for each config
   932 	//Allocate temporary storage for the attributes for each config
   933 	//This is actually obtained from the remote function call
   933 	//This is actually obtained from the remote function call
   934 	EGLint* attributesForAllConfigs(0);
   934 	EGLint* attributesForAllConfigs(0);