mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 04:31:57 +00:00 
			
		
		
		
	[client] egl: sync on fence without force glFlush in non-dmabuf path
This commit is contained in:
		| @@ -255,7 +255,6 @@ EGL_TexStatus egl_texBufferStreamProcess(EGL_Texture * texture) | ||||
|     glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); | ||||
|  | ||||
|     this->sync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); | ||||
|     glFlush(); | ||||
|   } | ||||
|  | ||||
|   return EGL_TEX_STATUS_OK; | ||||
| @@ -271,7 +270,8 @@ EGL_TexStatus egl_texBufferStreamGet(EGL_Texture * texture, GLuint * tex, | ||||
|  | ||||
|   if (this->sync) | ||||
|   { | ||||
|     switch(glClientWaitSync(this->sync, 0, 40000000)) // 40ms | ||||
|     switch(glClientWaitSync( | ||||
|           this->sync, GL_SYNC_FLUSH_COMMANDS_BIT, 40000000)) //40ms | ||||
|     { | ||||
|       case GL_ALREADY_SIGNALED: | ||||
|       case GL_CONDITION_SATISFIED: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Geoffrey McRae
					Geoffrey McRae