obj: Fix doc comment and update example to build

This commit is contained in:
foxnne 2024-11-27 08:26:24 -06:00 committed by Emi Gutekanst
parent 0476999dc4
commit f58cb270b1
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ pub fn init(
// Color target describes e.g. the pixel format of the window we are rendering to.
const color_target = gpu.ColorTargetState{
.format = core.windows.get(core.main_window).?.framebuffer_format,
.format = core.windows.get(core.main_window, .framebuffer_format).?,
.blend = &blend,
};