opengl: allocate the texture size using the visible dimensions of the format.

Removes a green line bug at the bottom of some videos.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
opengl: comment texture recycling and document a possible bug.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
vlc_atomic: add missing include for MSVC.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
vlc_atomic: set the atomic types to be at least 32 bits wide with MSVC.

This change is required since some atomic operations of the
Interlocked API are only available for desktop apps.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
vlc_atomic: fix compilation warnings with MSVC.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Contribs: dvdread, use the correct libdvdcss option