OSDN Git Service

Fix glLinkProgram with invalid program name
authorYahan Zhou <yahan@google.com>
Tue, 22 Nov 2016 22:03:56 +0000 (14:03 -0800)
committerYahan Zhou <yahan@google.com>
Tue, 22 Nov 2016 22:59:07 +0000 (14:59 -0800)
commitb99406c86fcf4bf9e0eec5fc08d2f59515cf9e3f
treec400efe1466974af9b8c28355920277dc800e4ca
parent442169e391640f8696c0678e72fee88d58090c0c
Fix glLinkProgram with invalid program name

glLinkProgram might try setting up program attributes even when an
invalid program name is passed to it. This patch fixes it.

BUG: 33069416
Change-Id: I93ed140095b67df47b158ba837c4aac8eb9e8e50
shared/OpenglCodecCommon/GLSharedGroup.cpp
shared/OpenglCodecCommon/GLSharedGroup.h
system/GLESv2_enc/GL2Encoder.cpp