Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119024

Initialization of VertexBuffer is done incorrectly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:

      Description


      Initialization of VertexBuffer is done by call from BaseContext form its constructor :

      public abstract class BaseContext {
          private final VertexBuffer vertexBuffer;
          BaseContext() {
             this.vertexBuffer = createVertexBuffer();
          }

      while createVertexBuffer is a vistual function wich is overriden and directs to un-initialized child class D3DContext.
      As a result we have an un-initialized D3DContext in the D3DVertexBuffer(D3DContext context...) constructor.
      This needs to be re-done in a proper way.
      We need to remove virtual calls from constructors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kprazdnikwse Kirill.Prazdnikov (Inactive)
                Reporter:
                kprazdnikwse Kirill.Prazdnikov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: