G
G
GlowMan2019-05-08 14:29:07
C++ / C#
GlowMan, 2019-05-08 14:29:07

Why is there no triangle?

I wrote a native window (WINAPI), got the OpenGl context (extended too), also got all the pointers to the OpenGl functions, there are no errors during compilation and linking. (Wrote for review purposes)
When using third-party lib like glfw+glad, everything works.
Code here
5cd2c25828f6e431164795.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SerJook, 2019-05-08
@DoYouGot

Incorrect handling of the WM_SIZE message:

The low-order word of lParam specifies the new width of the client area.
The high-order word of lParam specifies the new height of the client area.

case WM_SIZE:
        glViewport(0, 0, LOWORD(lParam), HIWORD(lParam));

5cd2ef0534175926741512.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question