Skip to content

render_target not working in wgsl #989

@ddmills

Description

@ddmills

minimal reproduction here: https://github.com/ddmills/quads-gl-wasm

use macroquad::prelude::*;

fn window_conf() -> Conf { 
    Conf::default()
}

#[macroquad::main(window_conf)]
async fn main() {
    println!("Hello, world!");

    // [warning] "Missed function: glCheckFramebufferStatus"
    // [panic] .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/miniquad-0.4.8/src/graphics/gl.rs, line: 1144, column: 21
    render_target(100, 100);

    loop {
        draw_fps();
        next_frame().await;
    }
}
[warning] "Missed function: glCheckFramebufferStatus"
[panic] .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/miniquad-0.4.8/src/graphics/gl.rs, line: 1144, column: 21
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions