Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
26 Views

glVertexPointer() ignores size argument

System Setup Information:
-----------------------------------------

System Used: Multiple
CPU SKU: Multiple
GPU SKU: Happens on both HD 530 and HD 620
Processor Line: Any
System BIOS Version: N/A
CMOS settings: N/A
Graphics Driver Version: 23.20.16.5018
GOP/VBIOS Version: N/A
Operating System: Windows 10.
OS Version: N/A
API: OpenGL.
Occurs on non-Intel GPUs?: No.

Steps to Reproduce:
-------------------------------

1. Make vertex array float ptr[6] = {0,10, 50, 70, 150, 160}; // numbers not important
2. Enable client state (GL_VERTEX_ARRAY)
3. call glVertexPointer(2, GL_FLOAT, 0, ptr)
4. call glDrawArrays(GL_LINE, 0, 2);

Expected Results: A line is drawn from (0,10) to (50,70)
-------------------------------

Actual Results: A line is drawn from (0,10,50) to (70, 150, 160)
-------------------------------

Additional Information: Only happens if there are no textures or normals, Linux works fine.
-------------------------------

0 Kudos
0 Replies