Skip to content

bug in Window::surface function - incorrect surface rendering. #1603

@9prady9

Description

@9prady9

This has been initially been reported via google group forum post.

Code to reproduce the bug is given below.

#include <arrayfire.h>
#include <cstdio>
#include <cstdlib>

using namespace af;

int main(int argc, char *argv[])
{
    try {
        af::info();

        Window w;

        array A = randu(10, 10);

        w.setAxesLimits(0.0f, 10.0f, 0.0f, 10.0f, 0.0f, 1.0f);

        while(!w.close()) {
            w.surface(A);
        }

    } catch (af::exception& e) {
        fprintf(stderr, "%s\n", e.what());
        throw;
    }

    return 0;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions