@hamoid wrote:
Hi,
By accident I used
GL_RGBto allocate anofPixelsand then spent a long time debugging why the width was 0 (assuming it was related to vectors and std::move), until I realized I should have usedOF_IMAGE_COLORinstead.// wrong ofPixels p; p.allocate(w, h, GL_RGB);Functions like
ofPixelFormatFromImageTypeandchannelsFromPixelFormatgive warnings when trying to use an unrecognized image type. Couldn't this check also be done when usingGL_RGB?
Posts: 1
Participants: 1