http://bugs.winehq.org/show_bug.cgi?id=15644
--- Comment #36 from H. Verbeet hverbeet@gmail.com 2008-10-28 15:16:09 --- Those GL errors are caused by the debug patch. You should first check the object type (GL_OBJECT_SUBTYPE_ARB) before trying to get the shader source, since obj can be a program as well.
Just to be sure, is d37c6fc0a94b3ac3b4cce58afeafbdf225107b80 also the patch that causes the regression for you?