check for gl errors in each affected function
create gl texture for video surface both in case of VA presence and absence