params[0] = GL_TRUE;
break;
+ case GL_INTERNALFORMAT_PREFERRED:
+ params[0] = internalFormat;
+ break;
+
default:
_set_default_response(pname, params);
break;
break;
case GL_INTERNALFORMAT_PREFERRED:
- /* @TODO */
+ /* The ARB_internalformat_query2 spec says:
+ *
+ * "- INTERNALFORMAT_PREFERRED: The implementation-preferred internal
+ * format for representing resources of the specified <internalformat> is
+ * returned in <params>.
+ *
+ * Therefore, we let the driver answer.
+ */
+ ctx->Driver.QueryInternalFormat(ctx, target, internalformat, pname,
+ buffer);
break;
case GL_INTERNALFORMAT_RED_SIZE: