Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Chapter 2 : warning treated as error that messes with the triangle using custom data structs #5

@NPatch

Description

@NPatch

Basically,you've used size_t to cache the sizeof values but glVertexAttribPointer needs GLsizei which means a downcast meaning possible loss of data.So we get this "warning C4267: 'function' : conversion from 'size_t' to 'GLsizei', possible loss of data" warning which can also mess up the drawing of the triangle since it might try to use a faulty size for reading the verts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions