[Cogl] [PATCH] texture: expose mipmap level in set region apis

Robert Bragg robert at sixbynine.org
Tue Nov 27 09:34:19 PST 2012


On Tue, Nov 27, 2012 at 4:58 PM, Neil Roberts <neil at linux.intel.com> wrote:

> I wrote:
>
> >> Isn't that loop equivalent to this?
> >>
> >> current_width = MAX (1, current_width >> level);
> >> /* etc */
>
> Having complained about your loop, I just noticed I wrote the same
> loop for the cogl_offscreen_new_to_texture_full function:
>
>
> http://git.gnome.org/browse/cogl/tree/cogl/cogl-framebuffer.c?id=5fb4a6178#n593
>
> If you can be bothered it might be worth making this use your function
> instead.
>

Yeah, I already have a patch that does that which I should send out soon.

regards,
- Robert


>
> Regards,
> - Neil
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>
> _______________________________________________
> Cogl mailing list
> Cogl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/cogl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/cogl/attachments/20121127/528fbd3e/attachment.html>


More information about the Cogl mailing list