vghwinterface/vghwapiwrapper/src/driverapiwrapper.cpp
branchbug235_bringup_0
changeset 71 243bbc1d70db
parent 53 c2ef9095503a
equal deleted inserted replaced
70:08233365fef6 71:243bbc1d70db
   243 	m_currentFunctionCall.GetEGLint( h, 1 );
   243 	m_currentFunctionCall.GetEGLint( h, 1 );
   244 	m_currentFunctionCall.GetEGLint( pixelformat, 2 );
   244 	m_currentFunctionCall.GetEGLint( pixelformat, 2 );
   245 
   245 
   246 	::eglMakeCurrent( m_Dpy, m_DudSurface, m_DudSurface, m_PoolContext );
   246 	::eglMakeCurrent( m_Dpy, m_DudSurface, m_DudSurface, m_PoolContext );
   247 
   247 
   248 	//eglCreatePbufferSurface
       
   249 	EGLint pbuffer_surface_attribs[] =
       
   250 	{
       
   251       EGL_WIDTH,    w,
       
   252 	  EGL_HEIGHT,   h,
       
   253       EGL_NONE
       
   254 	};
       
   255 	VGImageFormat format = getVGColorFormat( pixelformat );
   248 	VGImageFormat format = getVGColorFormat( pixelformat );
   256 	img = ::vgCreateImage(format, w, h, VG_IMAGE_QUALITY_NONANTIALIASED);//todo: quality; how to decide (TSgImageInfo only provides w,h, pixelformat)?
   249 	img = ::vgCreateImage(format, w, h, VG_IMAGE_QUALITY_NONANTIALIASED);//todo: quality; how to decide (TSgImageInfo only provides w,h, pixelformat)?
   257 		if( img != VG_INVALID_HANDLE )
   250 		if( img != VG_INVALID_HANDLE )
   258 	{
   251 	{
   259 		m_SgImageVGImages.push_back( img );
   252 		m_SgImageVGImages.push_back( img );